Skip to content

Commit 46cdb97

Browse files
committed
Rename annotate parameter to match upstream
1 parent 2b31002 commit 46cdb97

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -771,9 +771,10 @@ def text(self, x, y, s, fontdict=None, withdash=False, **kwargs):
771771
self._add_text(t)
772772
return t
773773

774+
@cbook._rename_parameter("3.1", "s", "text")
774775
@docstring.dedent_interpd
775-
def annotate(self, s, xy, *args, **kwargs):
776-
a = mtext.Annotation(s, xy, *args, **kwargs)
776+
def annotate(self, text, xy, *args, **kwargs):
777+
a = mtext.Annotation(text, xy, *args, **kwargs)
777778
a.set_transform(mtransforms.IdentityTransform())
778779
if 'clip_on' in kwargs:
779780
a.set_clip_path(self.patch)

0 commit comments

Comments
 (0)