-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
backend_ps cleanup. #15233
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
backend_ps cleanup. #15233
Conversation
1420e27
to
f4d742f
Compare
@@ -1006,28 +985,18 @@ def print_figure_impl(fh): | |||
|
|||
@cbook._delete_parameter("3.2", "dryrun") | |||
def _print_figure_tex( | |||
self, outfile, format, dpi, facecolor, edgecolor, | |||
orientation, papertype, *, | |||
metadata=None, dryrun=False, bbox_inches_restore=None, **kwargs): |
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.
So this function is technically private, but we still have _delete_parameter
on it, so is it really safe to be deleting other parameters here?
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.
The _delete_parameter is there because previously it couldn't go onto the public caller (print_ps) which just accepted dryrun into kwargs (xref #16231).
print_ps only ever passes facecolor/edgecolor as kwargs anyways, so they would get silently absorbed into kwargs.
rebased |
Dedupe some code between backend_ps and backend_bases (the edgecolor and facecolor handling -- see changelog), as well as between the non-tex and tex cases (by formatting the header metadata ("dsc_comments") earlier). Also simplify a bit papersize handling in usetex case.
Dedupe some code between backend_ps and backend_bases (the edgecolor and
facecolor handling -- see changelog), as well as between the non-tex and
tex cases (by formatting the header metadata ("dsc_comments") earlier).
PR Summary
PR Checklist