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

Expire _check_savefig_extra_args-related deprecations. by anntzer · Pull Request #21395 · matplotlib/matplotlib · GitHub

Repository navigation

Expire _check_savefig_extra_args-related deprecations. - #21395

Merged
QuLogic merged 1 commit into
matplotlib:mainfrom
anntzer:csea
Dec 7, 2021
Merged

QuLogic merged 1 commit into
matplotlib:mainfrom
anntzer:csea

Conversation

anntzer commented Oct 20, 2021

Copy link
Copy Markdown
Contributor

i.e. make print_figure() error on non-supported kwargs.

We can further remove the need to decorate each and every print_method
by instead doing the wrapping when fetching the method instead; this
wrapping is done in a _switching_canvas_and_get_print_method helper.

PR Summary

PR Checklist

  • Has pytest style unit tests (and pytest passes).
  • Is Flake 8 compliant (run flake8 on changed files to check).
  • New features are documented, with examples if plot related.
  • Documentation is sphinx and numpydoc compliant (the docs should build without error).
  • Conforms to Matplotlib style conventions (install flake8-docstrings and run flake8 --docstring-convention=all).
  • New features have an entry in doc/users/next_whats_new/ (follow instructions in README.rst there).
  • API changes documented in doc/api/next_api_changes/ (follow instructions in README.rst there).

Comment thread lib/matplotlib/backend_bases.py Outdated

Copy link
Copy Markdown
Member

I took the liberty of rebasing (I broke it in #21705 ).

tacaswell 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

I agree the name of the context manager could be better, but it is internal so the stakes of getting in wrong are lower.

i.e. make print_figure() error on non-supported kwargs.

We can further remove the need to decorate each and every print_method
by instead doing the wrapping when fetching the method instead; this
wrapping is done in a _switch_canvas_and_return_print_method helper.
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL