From edaeca4c40dbf30a0f7a652aadecac8b5f29f9c1 Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Wed, 3 Oct 2018 11:43:47 +0200 Subject: [PATCH] Revert change of parameter name in annotate() --- lib/matplotlib/axes/_axes.py | 4 ++-- lib/matplotlib/pyplot.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index 804689ee1f46..985c5c5e2019 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -719,8 +719,8 @@ def text(self, x, y, s, fontdict=None, withdash=False, **kwargs): return t @docstring.dedent_interpd - def annotate(self, text, xy, *args, **kwargs): - a = mtext.Annotation(text, xy, *args, **kwargs) + def annotate(self, s, xy, *args, **kwargs): + a = mtext.Annotation(s, xy, *args, **kwargs) a.set_transform(mtransforms.IdentityTransform()) if 'clip_on' in kwargs: a.set_clip_path(self.patch) diff --git a/lib/matplotlib/pyplot.py b/lib/matplotlib/pyplot.py index ec15c5e8d28e..b97b5e2bf4b9 100644 --- a/lib/matplotlib/pyplot.py +++ b/lib/matplotlib/pyplot.py @@ -2368,8 +2368,8 @@ def angle_spectrum( # Autogenerated by boilerplate.py. Do not edit as changes will be lost. @docstring.copy_dedent(Axes.annotate) -def annotate(text, xy, *args, **kwargs): - return gca().annotate(text=text, xy=xy, *args, **kwargs) +def annotate(s, xy, *args, **kwargs): + return gca().annotate(s=s, xy=xy, *args, **kwargs) # Autogenerated by boilerplate.py. Do not edit as changes will be lost.