GeezerVison is showing github.com — Savefig does not issue a warning on a non-existent keyword n · Issue #192 · matplotlib/matplotlib
Savefig does not issue a warning on a non-existent keyword n #192DescriptionOriginal report at SourceForge, opened Tue Feb 8 16:27:19 2011
savefig does not issue a warning on a non-existent keyword name
Example
Savefig('filename.png', NonExistant=True)
Will not throw any warning. This is especially important if you accidentally misspell an argument, such as:
Savefig('filename.png', tranperent=True)
Notice 'transperent' instead of 'transparent' Activitypelson commented on Jun 18, 2012 @ootz0rz: I've had a quick look at your attached commit. I think probably the best approach to resolving this issue would be to go through the backend_*.py files, looking for the cases where **kwargs have been accepted, but not used. For instance, if you remove the **kwargs in backends_agg.py's print_png function, then you might find that Python does the error handling for you for "pngs" at least.
Do you fancy getting involved and seeing how you get on implementing a fix? modified the milestones: This milestone has been deleted, This milestone has been deleted on Feb 16, 2016tacaswell commented on Feb 16, 2016 Started to look into this again, it is a rat's nest.
print_figure throws the kitchen sink at the underlying print functions so if we want to lock this down we need to lock down the union of the keywords expected in all of the print functions.
anntzer commented on Apr 22, 2020 fwiw mplcairo simply lists the (extra) allowed kwargs in mplcairo.base._check_print_extra_kwargs, and throws if anything not in there is passed. QuLogic commented on Apr 22, 2020 Unfortunately, there's some incomplete implementations of some keyword arguments in some backends that makes this a bit more difficult than it should be. added 2 commits that reference this issue on Apr 23, 2020This issue will close once commit 0bd3491 is merged into the 'main' branch.0bd3491 This issue will close once commit cb47539 is merged into the 'main' branch.cb47539 added 3 commits that reference this issue on Jun 10, 2020This issue will close once commit f74575c is merged into the 'main' branch.f74575c This issue will close once commit f25f1eb is merged into the 'main' branch.f25f1eb This issue will close once commit b7a574f is merged into the 'main' branch.b7a574f
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|