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

Warn on invalid savefig keyword arguments by QuLogic · Pull Request #17223 · matplotlib/matplotlib · GitHub

Repository navigation

Warn on invalid savefig keyword arguments - #17223

Merged
QuLogic merged 4 commits into
matplotlib:masterfrom
QuLogic:savefig-extra-kwargs
Jun 15, 2020
Merged

QuLogic merged 4 commits into
matplotlib:masterfrom
QuLogic:savefig-extra-kwargs

Conversation

QuLogic commented Apr 23, 2020 •
edited
Loading

Copy link
Copy Markdown
Member

PR Summary

This depends on #17221 and #17233 so that there are no warnings about metadata from saving SVG or PDF with the PGF backend.

Fixes #192.

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

QuLogic added API: consistency Consistency of the matplotlib API, including naming, behavior, defaults, … status: waiting for other PR labels Apr 23, 2020
QuLogic force-pushed the savefig-extra-kwargs branch from 0bd3491 to cb47539 Compare April 23, 2020 06:02
QuLogic force-pushed the savefig-extra-kwargs branch from cb47539 to f74575c Compare June 10, 2020 19:09
QuLogic marked this pull request as ready for review June 10, 2020 19:13

QuLogic commented Jun 10, 2020

Copy link
Copy Markdown
Member Author

Now ready, as the metadata PRs went in.

tacaswell added this to the v3.3.0 milestone Jun 10, 2020
Comment thread lib/matplotlib/backends/backend_agg.py Outdated
Comment thread lib/matplotlib/backend_bases.py Outdated
QuLogic force-pushed the savefig-extra-kwargs branch from f74575c to f25f1eb Compare June 12, 2020 01:02

QuLogic commented Jun 12, 2020

Copy link
Copy Markdown
Member Author

I changed it into a decorator, as @anntzer requested. I wonder if also args should be removed from the final methods?

QuLogic force-pushed the savefig-extra-kwargs branch from f25f1eb to b7a574f Compare June 12, 2020 01:24

anntzer commented Jun 15, 2020 •
edited
Loading

Copy link
Copy Markdown
Contributor

Also removing args seems good to me?

anntzer commented Jun 15, 2020

Copy link
Copy Markdown
Contributor

postci

QuLogic merged commit 7b76234 into matplotlib:master Jun 15, 2020
QuLogic deleted the savefig-extra-kwargs branch June 15, 2020 22:01
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

API: consistency Consistency of the matplotlib API, including naming, behavior, defaults, …

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Savefig does not issue a warning on a non-existent keyword n

3 participants


Back | FazBrowse Home | New Git URL