-
Notifications
You must be signed in to change notification settings - Fork 279
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
annotate_clear -> clear_annotations #2569
Conversation
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.
One minor comment that I'd like to see changed, but I'm happy to merge once that's updated!
Clear callbacks from the plot. If index is not set, clear all | ||
callbacks. If index is set, clear that index (ie 0 is the first one | ||
created, 1 is the 2nd one created, -1 is the last one created, etc.) | ||
|
||
.. note:: | ||
|
||
Deprecated in favor of `clear_annotations`. | ||
|
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.
I think the deprecation notice should be at the start of this docstring (it doesn't need to be in a note). If a user looks at this function, the very first thing they read should be that it has been deprecated in favor of clear_annotations.
Just a note about why I chose to make this originally called |
I just noticed that #2562 is pointing to the 4.0 branch and this PR is pointing to master. This PR should also go to 4.0 or wait to be merged until after the 4.0 merge so it is accessible alongside the list_annotations feature. |
PR Summary
Makes the functionality of the
annotate_clear
method, well, clearer, by changing it toclear_annotations
.Addresses #2564
PR Checklist