New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RuntimeError: LaTeX was not able to process the following string #2
Comments
Hi @taneta, This error seems to be caused by LaTeX. You can disable LaTeX by using:
Otherwise, I've also added a new style to disable LaTeX:
Please let me know if that works! |
This issue seems to have been caused by the I removed this package in the latest commit, which should fix your issue. |
This error still exists only when using jupyter notebook. Adding This is strange, because the same code works well (with latex) in pure python interpreter. |
I found this is caused by the The temporary tex files produced by jupyter notebook is slightly different from that by pure python interpreter. Sometimes, for some reason (I don't know), jupyter notebook generates \fontsize{10.000000}{12.500000}{\sffamily $−2$} rather than \fontsize{10.000000}{12.500000}{\rmfamily lp} or other positive values. Then the latex engine throws error: ! Package inputenc Error: Unicode char − (U+2212)
(inputenc) not set up for use with LaTeX. A workaround of disabling unicode_minus works for me: matplotlib.rcParams['axes.unicode_minus'] = False |
I faced this problem when I used Jupyter notebook. |
…cess the following string: b'lp' using hints from here garrettj403/SciencePlots#2 and here https://stackoverflow.com/a/53080504
Somehow, this problem occurs when using PowerShell, but not when using Jupyter Lab. Not sure why this problem is occurring, despite using the same environment. |
Trying to reproduce the example:
The text was updated successfully, but these errors were encountered: