Closed cesaryuan closed 3 months ago
I'm not able to reproduce the error neither on Windows/Py3.11 nor Ubuntu/Py3.9
You may want to deactivate using LaTeX for the rendering by appending the no-latex style to your styles list. It's important that it's the latest so it can overwrite the usetex
config set by the science style.
['science', 'ieee', 'no-latex']
If you investigate any further and find any relevant info about your problem, or even if you fix it, please let us know, in case it helps somebody in the future.
I'm not able to reproduce the error neither on Windows/Py3.11 nor Ubuntu/Py3.9
Hi, thanks for your reply. I just want to know what TeX distribution you use when trying to reproduce. It will help to find out. 😊
Good point @cesaryuan
Windows10 / Python 3.11.8 / Matplotlib 3.8.2
> latex
This is pdfTeX, Version 3.141592653-2.6-1.40.24 (TeX Live 2022) (preloaded format=latex)
Ubuntu 22.04 / Python 3.9.18 / Matplotlib 3.7.2
> latex
This is pdfTeX, Version 3.141592653-2.6-1.40.22 (TeX Live 2022/dev/Debian) (preloaded format=latex)
An idea, if you feel confident, is debugging your code and finding which system call made by matplotlib fails. Then try to replicate it in the command line.
I created a pure Windows 11 virtual machine. And install Miktex and Miniconda 3 from scratch. The bug can still be reproduced.
Trying TexLive; it works. So may be we should make a note in Readme that it does not support Miktex?
Nice timing. I'm hesitant to say that SciencePlots does not support MikTex, but rather note that there have been problems with it. It's a problem in the matplotlib side, it doesn't really involve SciencePlots - we only support the styles and distribution of them. Anyway, I will change something in the wiki. Thanks for reporting the solution!
Feel free to close this issue.
I'm hesitant to say that SciencePlots does not support MikTex, but rather note that there have been problems with it.
I alse post a issue on matplotlib repo. Maybe they will find out. 😊
Good note. Quick question, did you check that running the command latex
(command line or powershell) was successful before, with the MikTex distro?
Good note. Quick question, did you check that running the command
latex
(command line or powershell) was successful before, with the MikTex distro?
Yes, I have used MiKTeX for my journal article. It works well.
Since at matplotlib the issue has been acknowledged and we have updated our recommendations, I think we can close this issue.
Thanks @cesaryuan for reporting and investigating!
Environment
Affected styles
Describe the issue here
ax.xaxis.set_major_locator
will let matplotlib to throw error.How can we replicate it? What have you tried? Please, add a reproducible example
Extra info
No response