From 4f79080fc6aa85cd0ff78d4ec0c575c3ee4bea2e Mon Sep 17 00:00:00 2001 From: Eric Firing Date: Wed, 3 Oct 2018 17:20:43 -1000 Subject: [PATCH] Backport PR #12383: 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 5cb4781036ae..f170e2434dfc 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -722,8 +722,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 bfc0615230b3..5134ea184739 100644 --- a/lib/matplotlib/pyplot.py +++ b/lib/matplotlib/pyplot.py @@ -2402,8 +2402,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. 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