You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to update my code that annotates a plot by changed the deprecated keyword argument s to text as described in the documentation of matplotlib v3.1.1. However it fails to recognise text as an argument and requests s instead.
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.
Activity
timhoffm commentedon Aug 27, 2019
This issue is discussed in #15049.
ImportanceOfBeingErnest commentedon Aug 27, 2019
Marking as release critical, because the documentation cannot state a parameter
text, if that parameter does not exist.timhoffm commentedon Aug 29, 2019
The way forward (two possible solutions) is #15049 (comment).
tacaswell commentedon Oct 15, 2019
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
skwarg for at least one extra minor release after we clean this up.timhoffm commentedon Feb 16, 2020
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.
SeaDude commentedon Apr 8, 2020
What is the fix for us end users? Following this tutorial here...
I receive the error...
When attempting to run...
Thank you!
ksunden commentedon Apr 8, 2020
@SeaDude See #15049, which is now merged, and ensures that the proper renaming is propegated (not yet released, but coming)
Alternatively, you can just take out the
s=, as that is the first positional argument anywaytacaswell commentedon Apr 8, 2020
What version of Matplotlib are you using?
You can also change
plt.annotatetoax.annotate. The random switching between the OO and sate machine APIs in that tutorial is very weird.