You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Inconsistent handling of whitespace with LaTeX #4954
For some reason the current matplotlib master doesn't work on my machine. So I'm not able to test the PRs at the moment.
You are right, the error lies in the svg backend or in the viewer. The pdf and png renderings are equal to what LaTeX does outside of matplotlib.
If the align* environment is used instead of eqnarray* with \usepackage{amsmath} in the preamble, everything is consistent across all file formats.
Oh, sorry I misread your post. If you are using usetex=True what you are getting as a png of the latex output embedded in your plot so it is 'correct' (in that we use latex as the reference standard for our internal mathtex layout engine which is what those PRs are working on).
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!
Activity
tacaswell commentedon Aug 18, 2015
There are two PRs open (#4873, #4872) that address this. Do either of them fix this?
I think we might be delegating the equation rendering in the svg backend to your viewer.
lgeiger commentedon Aug 18, 2015
For some reason the current matplotlib master doesn't work on my machine. So I'm not able to test the PRs at the moment.
You are right, the error lies in the svg backend or in the viewer. The pdf and png renderings are equal to what LaTeX does outside of matplotlib.
If the
align*environment is used instead ofeqnarray*with\usepackage{amsmath}in the preamble, everything is consistent across all file formats.tacaswell commentedon Aug 19, 2015
Oh, sorry I misread your post. If you are using
usetex=Truewhat you are getting as a png of the latex output embedded in your plot so it is 'correct' (in that we use latex as the reference standard for our internal mathtex layout engine which is what those PRs are working on).github-actions commentedon Mar 16, 2023
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!