Skip to content

Commit bfd25e7

Browse files
authored
Merge pull request #12383 from timhoffm/revert-annotate-parameter-name
Revert change of parameter name in annotate()
2 parents b96fb6f + edaeca4 commit bfd25e7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -719,8 +719,8 @@ def text(self, x, y, s, fontdict=None, withdash=False, **kwargs):
719719
return t
720720

721721
@docstring.dedent_interpd
722-
def annotate(self, text, xy, *args, **kwargs):
723-
a = mtext.Annotation(text, xy, *args, **kwargs)
722+
def annotate(self, s, xy, *args, **kwargs):
723+
a = mtext.Annotation(s, xy, *args, **kwargs)
724724
a.set_transform(mtransforms.IdentityTransform())
725725
if 'clip_on' in kwargs:
726726
a.set_clip_path(self.patch)

lib/matplotlib/pyplot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2368,8 +2368,8 @@ def angle_spectrum(
23682368

23692369
# Autogenerated by boilerplate.py. Do not edit as changes will be lost.
23702370
@docstring.copy_dedent(Axes.annotate)
2371-
def annotate(text, xy, *args, **kwargs):
2372-
return gca().annotate(text=text, xy=xy, *args, **kwargs)
2371+
def annotate(s, xy, *args, **kwargs):
2372+
return gca().annotate(s=s, xy=xy, *args, **kwargs)
23732373

23742374

23752375
# Autogenerated by boilerplate.py. Do not edit as changes will be lost.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy