Skip to content

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

Merged
merged 4 commits into from
Apr 28, 2020
Merged

Backport eps work #17257

merged 4 commits into from
Apr 28, 2020

Conversation

tacaswell
Copy link
Member

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.

jklymak and others added 4 commits April 28, 2020 15:06
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
@tacaswell tacaswell added this to the v3.2.2 milestone Apr 28, 2020
@tacaswell tacaswell requested a review from anntzer April 28, 2020 19:29
Copy link
Contributor

@anntzer anntzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

postci.

@anntzer
Copy link
Contributor

anntzer commented Apr 28, 2020

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...

@tacaswell
Copy link
Member Author

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?

@anntzer
Copy link
Contributor

anntzer commented Apr 28, 2020

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.

Copy link
Member

@QuLogic QuLogic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable.

@QuLogic QuLogic merged commit 2f4a3e3 into matplotlib:v3.2.x Apr 28, 2020
@tacaswell tacaswell deleted the backport_eps_work branch May 6, 2021 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants