LaTeX was unable to process the following line: b'lp '

I am just getting started with Python, scypi and matplotlib, I copied this code:

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()

      

But it shows an error:

'LaTeX was not able to process the following string: b'lp''

      

File ... Lib \ site-packages \ matplotlib \ mpl-data \ matplotlibrc show:   #text.usetex : False

os: windows 7
dis: winpython

What can I do? Thank.

+3


source to share





All Articles