我刚开始使用Python,scypi和matplotlib,我复制了这段代码:
from scipy import stats
import numpy as np
import matplotlib.pyplot as plt
data = stats.exponweib.rvs(a=1, c=2.09, scale=10.895, loc=0, size=2500)
plt.plot(data, stats.exponweib.pdf(data, *stats.exponweib.fit(data, 1, 1, scale=02, loc=0))
_ = plt.hist(data, bins = np.linspace(0, 16, 33), normed=True, alpha=0.5)
plt.show()
但它显示错误:
'LaTeX was not able to process the following string: b'lp''
文件... Lib \ site-packages \ matplotlib \ mpl-data \ matplotlibrc显示:
#text.usetex : False
os:windows 7
dis:winpython
我该怎么办? 感谢。