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
python-3.x scipy matplotlib latex


source to share


No one has answered this question yet

Check out similar questions:

1873
Convert bytes to string
408
How to wrap text in LaTeX tables?
381
Inserting code into this LaTeX document indented
364
Insert PDF file into latex
299
List of LaTeX source code as in professional books
268
How do I change the font of a document in LaTeX?
13
why does matplotlib give the error [<matplotlib.lines.Line2D object at 0x0392A9D0>]?
0
LaTeX cannot process string in python
0
How do you set the "tail probabilities" in a scipy genextreme distribution?
-1
Python: ValueError: x and y must have the same first dimension



All Articles
Loading...
X
Show
Funny
Dev
Pics