-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
ps: Add option to use figure size as paper size #26479
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
Conversation
15bb499
to
d2d5cd4
Compare
It's a bit of a smoke test, but I've added checks for the various combinations of ps output. |
PostScript paper type defaults to figure size | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
The :rc:`ps.papertype` rcParam no longer defaults to 'letter' paper, but |
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.
This does not match what the code does.
d2d5cd4
to
f5d1dbe
Compare
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.
anyone can merge on green
We already set the bounding box to coincide with the figure size, but setting an overall paper size can sometimes cause the resulting file to be cropped by the viewer. We additionally need to pass this through to the distiller.
f5d1dbe
to
740c5d7
Compare
When a distiller is not found, that step is simply skipped by `_try_distill`, so these tests were not actually skipped as intended.
5d0ec0e
to
96b26fe
Compare
Meant to squash merge to fix the commit message which incorrectly indicates the default changed, unfortunately forgot to do so and now it is not trivial to fix... |
PR summary
We already set the bounding box to coincide with the figure size, but setting an overall paper size can sometimes cause the resulting file to be cropped by the viewer.
We additionally need to pass this through to the distiller.
Fixes #16657
PR checklist