8000 Merge pull request #11474 from matplotlib/auto-backport-of-pr-11442-o… · matplotlib/matplotlib@de85177 · GitHub
[go: up one dir, main page]

Skip to content

Commit de85177

Browse files
authored
Merge pull request #11474 from matplotlib/auto-backport-of-pr-11442-on-v2.2.2-doc
Backport PR #11442 on branch v2.2.2-doc
2 parents 7f4a8d4 + 225ebe4 commit de85177

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,8 @@ def __str__(self):
420420
return "{0}({1[0]:g},{1[1]:g};{1[2]:g}x{1[3]:g})".format(
421421
type(self).__name__, self._position.bounds)
422422

423+
@docstring.Substitution(scale=' | '.join(
424+
[repr(x) for x in mscale.get_scale_names()]))
423425
def __init__(self, fig, rect,
424426
facecolor=None, # defaults to rc axes.facecolor
425427
frameon=True,
@@ -431,10 +433,10 @@ def __init__(self, fig, rect,
431433
**kwargs
432434
):
433435
"""
434-
Build an :class:`Axes` instance in
435-
:class:`~matplotlib.figure.Figure` *fig* with
436+
Build an `~axes.Axes` instance in
437+
`~matplotlib.figure.Figure` *fig* with
436438
*rect=[left, bottom, width, height]* in
437-
:class:`~matplotlib.figure.Figure` coordinates
439+
`~matplotlib.figure.Figure` coordinates
438440
439441
Optional keyword arguments:
440442
@@ -477,8 +479,8 @@ def __init__(self, fig, rect,
477479
*yticklabels* sequence of strings
478480
*yticks* sequence of floats
479481
================ =========================================
480-
""" % {'scale': ' | '.join(
481-
[repr(x) for x in mscale.get_scale_names()])}
482+
"""
483+
482484
martist.Artist.__init__(self)
483485
if isinstance(rect, mtransforms.Bbox):
484486
self._position = rect

0 commit comments

Comments
 (0)
0