FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Backport eps work by tacaswell · Pull Request #17257 · matplotlib/matplotlib · GitHub

Repository navigation

Backport eps work - #17257

Merged
QuLogic merged 4 commits into
matplotlib:v3.2.xfrom
tacaswell:backport_eps_work
Apr 28, 2020
Merged

QuLogic merged 4 commits into
matplotlib:v3.2.xfrom
tacaswell:backport_eps_work

Conversation

Copy link
Copy Markdown
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 added this to the v3.2.2 milestone Apr 28, 2020
tacaswell requested a review from anntzer April 28, 2020 19:29

anntzer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

postci.

anntzer commented Apr 28, 2020 •
edited
Loading

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
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 commented Apr 28, 2020

Copy link
Copy Markdown
Contributor

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.

QuLogic left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Seems reasonable.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL