| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
This should get documentation:
Sorry, something went wrong.
|
This is already documented in https://matplotlib.org/devdocs/tutorials/text/mathtext.html (look up \mathdefault there). Added comments, and also refactored the preamble-getting in to avoid duplicating that between make_tex and make_tex_preview. |
Sorry, something went wrong.
|
This looks good, but can this also get a test for the breaking case so it doesn't break again? |
Sorry, something went wrong.
This avoids having to strip out \mathdefault (a non-existent latex command) before generating usetex strings, as that's brittle on tickers -- the global usetex flag may change after the ticker is instantiated.
|
sure... done |
Sorry, something went wrong.
|
Feel free to re-milestone and back port if we think thats important.... |
Sorry, something went wrong.
|
Thanks for fixing this! This solution is much simpler than my idea :) |
Sorry, something went wrong.
|
You are welcome :) |
Sorry, something went wrong.
|
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
$ git checkout v3.2.x $ git pull
$ git cherry-pick -m1 508f21fb42d172201e5048b701fa13e16868bac7
$ git commit -am 'Backport PR #15695: Define \\mathdefault as a noop in the usetex preamble.'
git push YOURFORK v3.2.x:auto-backport-of-pr-15695-on-v3.2.x
And apply the correct labels and milestones. Congratulation you did some good work ! Hopefully your backport PR will be tested by the continuous integration and merged soon! If these instruction are inaccurate, feel free to suggest an improvement. |
Sorry, something went wrong.
Define \mathdefault as a noop in the usetex preamble.
Conflicts:
lib/matplotlib/ticker.py
change of a near-by conditional from np.abs -> abs caused
conflict
| Back | FazBrowse Home | New Git URL |
This avoids having to strip out \mathdefault (a non-existent latex
command) before generating usetex strings, as that's brittle on tickers
-- the global usetex flag may change after the ticker is instantiated.
Closes #10317.
(Note that we claim that the semantics of \mathdefault is "match the non-math font", but in usetex mode we previously just stripped it out anyways; making TeX actually use the non-math font in math would be... trickier.)
PR Summary
PR Checklist