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