My mac laptop's operating system is OS X El Capitan. I use the PyCharm IDE
and obtained python, with matplotlib installed, via Enthought Canopy. I am
trying to create plots using LateX text rendering (rc('text',usetex=True)),
but I keep getting an error saying "RuntimeError: LaTeX was not able to
process the following string: 'lp'" I looked into the most common causes
for this, and consequently double checked that my latex installation (with
dvipng and ghostscript included) is included in my PATH, and it is; but I
still get the error.
Here is a minimal example script, taken from the matplotlib documentation
import numpy as np
import matplotlib.pyplot as plt
# Example data
t = np.arange(0.0, 1.0 + 0.01, 0.01)
s = np.cos(4 * np.pi * t) + 2
plt.title(r"\TeX\ is Number "
# Make room for the ridiculously large title.
Any help would be greatly appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...