Skip to content

Commit edaeca4

Browse files
committed
Revert change of parameter name in annotate()
1 parent d5a4eda commit edaeca4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/matplotlib/axes/_axes.py

+2-2
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

+2-2
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)