-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
pyplot.annotate() API deprecation #15142
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
Comments
This issue is discussed in #15049. |
Marking as release critical, because the documentation cannot state a parameter |
The way forward (two possible solutions) is #15049 (comment). |
Pushed to 3.3 as this issue does not break any existing code, but is an inconsistency that we should fix. We should push out deprecating the |
Fixed via the final removal of the deprecation #16491. Luckily there was no further feedback on the inconsistency in 3.1, so we don't have to be too afraid that this will still be present in 3.2 and only be resolved in 3.3. |
What is the fix for us end users? Following this tutorial here... I receive the error...
When attempting to run...
Thank you! |
What version of Matplotlib are you using? You can also change |
Bug report
Bug summary
I wanted to update my code that annotates a plot by changed the deprecated keyword argument
s
totext
as described in the documentation of matplotlib v3.1.1. However it fails to recognisetext
as an argument and requestss
instead.Code for reproduction
Actual outcome
Expected outcome
I would expect that the keyword we should use in version 3.1.1 would be 'text' since in the documentation (https://matplotlib.org/3.1.1/api/_as_gen/matplotlib.pyplot.annotate.html) it says:
Matplotlib version
print(matplotlib.get_backend())
): TkAggI installed matplotlib through pip
The text was updated successfully, but these errors were encountered: