-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Deprecate parameters to colorbar which have no effect. #16051
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
flake8:
|
thanks, rebased. |
94acd23
to
799d7b0
Compare
@@ -1155,6 +1155,16 @@ def remove(self): | |||
self.ax.remove() | |||
|
|||
|
|||
def _merge_disjoint_kwargs(d, **kwargs): | |||
for k, v in kwargs.items(): |
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.
Should get a docstring. In particular, it should mention that d
is a dict and is updated with kwargs
. Also, I'd rather use _add_disjoint_kwargs
. "merge" sounds more like it would return a new dict with the merged content.
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.
sure, done
799d7b0
to
2919363
Compare
Per changelog entry. I went for a custom helper in colorbar.py rather than a more general one in cbook as this allowed for a nicer message, and making the general helper handle the deprecation would be a bit unwieldy.
2919363
to
9753708
Compare
rebased |
Per changelog entry.
I went for a custom helper in colorbar.py rather than a more general one
in cbook as this allowed for a nicer message, and making the general
helper handle the deprecation would be a bit unwieldy.
Supersedes #5056.
PR Summary
PR Checklist