I use MikTeX and try to obtain LaTeX fonts in my matplotlib plots.
However, using the demo code, Jyputer Notebook says that there is no latex,
Failed to process string with tex because latex could not be found I try to add into PATH the path to latex.exe, dvipng.exe and ghostscript. Unfortunately, it still does not work. What I do wrong?
If I evaluate the following
import matplotlib.pyplot as plt import numpy as np plt.plot(np.sin(np.arange(0, 10, 0.1)),label=r"$\mathcal{M}=2$") plt.xlabel("x") plt.ylabel("y") plt.legend() it returns me the next picture,
So, I see that \mathcal{} command works perfectly, whereas the fonts are not "latex".
