@@ -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