Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3066257

Browse filesBrowse files
committed
doc_AxesBase_bug
1 parent bfa8d61 commit 3066257
Copy full SHA for 3066257

File tree

Expand file treeCollapse file tree

1 file changed

+7
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-5
lines changed

‎lib/matplotlib/axes/_base.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_base.py
+7-5Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,8 @@ def __str__(self):
408408
return "{0}({1[0]:g},{1[1]:g};{1[2]:g}x{1[3]:g})".format(
409409
type(self).__name__, self._position.bounds)
410410

411+
@docstring.Substitution(scale=' | '.join(
412+
[repr(x) for x in mscale.get_scale_names()]))
411413
def __init__(self, fig, rect,
412414
facecolor=None, # defaults to rc axes.facecolor
413415
frameon=True,
@@ -419,10 +421,10 @@ def __init__(self, fig, rect,
419421
**kwargs
420422
):
421423
"""
422-
Build an :class:`Axes` instance in
423-
:class:`~matplotlib.figure.Figure` *fig* with
424+
Build an `~axes.Axes` instance in
425+
`~matplotlib.figure.Figure` *fig* with
424426
*rect=[left, bottom, width, height]* in
425-
:class:`~matplotlib.figure.Figure` coordinates
427+
`~matplotlib.figure.Figure` coordinates
426428
427429
Optional keyword arguments:
428430
@@ -465,8 +467,8 @@ def __init__(self, fig, rect,
465467
*yticklabels* sequence of strings
466468
*yticks* sequence of floats
467469
================ =========================================
468-
""" % {'scale': ' | '.join(
469-
[repr(x) for x in mscale.get_scale_names()])}
470+
"""
471+
470472
martist.Artist.__init__(self)
471473
if isinstance(rect, mtransforms.Bbox):
472474
self._position = rect

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.