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

Skip to content

Commit 1ef7f64

Browse files
committed
FIX/DOC - make Text doscstring interp more easily searchable
1 parent 7a5458b commit 1ef7f64

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ def text(self, x, y, s, fontdict=None, **kwargs):
608608
**kwargs : `~matplotlib.text.Text` properties.
609609
Other miscellaneous text parameters.
610610
611-
%(Text)s
611+
%(Text_kwdoc)s
612612
613613
Examples
614614
--------

lib/matplotlib/figure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1215,7 +1215,7 @@ def text(self, x, y, s, fontdict=None, **kwargs):
12151215
**kwargs : `~matplotlib.text.Text` properties
12161216
Other miscellaneous text parameters.
12171217
1218-
%(Text)s
1218+
%(Text_kwdoc)s
12191219
12201220
See Also
12211221
--------

lib/matplotlib/table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def set_text_props(self, **kwargs):
177177
178178
Valid keyword arguments are:
179179
180-
%(Text)s
180+
%(Text_kwdoc)s
181181
"""
182182
self._text.update(kwargs)
183183
self.stale = True

lib/matplotlib/text.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def __init__(self,
146146
147147
Valid keyword arguments are:
148148
149-
%(Text)s
149+
%(Text_kwdoc)s
150150
"""
151151
super().__init__()
152152
self._x, self._y = x, y
@@ -1276,7 +1276,7 @@ def set_fontname(self, fontname):
12761276
return self.set_family(fontname)
12771277

12781278

1279-
docstring.interpd.update(Text=artist.kwdoc(Text))
1279+
docstring.interpd.update(Text_kwdoc=artist.kwdoc(Text))
12801280
docstring.dedent_interpd(Text.__init__)
12811281

12821282

0 commit comments

Comments
 (0)