Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6021a60

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

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

0 commit comments

Comments
 (0)