If I include this plt.legend(['$0.25+\zeta$'], loc = 1)in my code, I am not getting
error. But plt.legend(['$\frac{1}{4}+\frac{\alpha}{10}$'], loc = 1) gives error.
Asked
Active
Viewed 571 times
1
user12290
- 3,341
plt.legend([r'$\frac{1}{4}+\frac{\alpha}{10}$'], loc = 1)work? – debsim May 03 '21 at 10:28matplotlibto do so,matplotlibdoesn't actually use TeX at all, it has just implemented a subset of the language. (Probably duplicate of https://stackoverflow.com/questions/27474322/ though.) – Torbjørn T. May 03 '21 at 17:22