-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Backport eps work #17257
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
Backport eps work #17257
Conversation
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
Fix use of psfrags in ps backend + usetex. Conflicts: lib/matplotlib/backends/backend_ps.py - near by change of rcParams -> mpl.rcParams lib/matplotlib/texmanager.py - do not implicitly backport rcParam deprecations
Fix baseline alignment when using usetex. Conflicts: lib/matplotlib/tests/test_usetex.py - import np and formatting issues on decorator
FIX: eps + usetex combo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
postci.
The reason I didn't write a test is that ghostscript actually doesn't error when rendering the "bad" ps files, just gives a blank page, and as usual I didn't want to add a baseline image. I guess one could use the usual trick of rendering the thing, "manually" (i.e. by calling ghostscript in the test) converting to png, and checking that the page isn't all white... |
I went through a very similar thought process. Would it be reliable to render the example @QuLogic came up with verify that the mediabox is correct? |
I guess "yes", but it's really a super indirect test, it wouldn't be obvious at all why these values are the correct ones. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems reasonable.
PR Summary
This is the stack of PRs that I had to backport to make them all apply relatively cleanly. All are arguably bug-fixes. The 2nd (#16913) and 4th (#17255 ) are the likely the critical ones.
I have verified that the example from #17253 works. Probably should add that as a test...
(re) closes #17253.