@@ -420,6 +420,8 @@ def __str__(self):
420
420
return "{0}({1[0]:g},{1[1]:g};{1[2]:g}x{1[3]:g})" .format (
421
421
type (self ).__name__ , self ._position .bounds )
422
422
423
+ @docstring .Substitution (scale = ' | ' .join (
424
+ [repr (x ) for x in mscale .get_scale_names ()]))
423
425
def __init__ (self , fig , rect ,
424
426
facecolor = None , # defaults to rc axes.facecolor
425
427
frameon = True ,
@@ -431,10 +433,10 @@ def __init__(self, fig, rect,
431
433
** kwargs
432
434
):
433
435
"""
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
436
438
*rect=[left, bottom, width, height]* in
437
- :class: `~matplotlib.figure.Figure` coordinates
439
+ `~matplotlib.figure.Figure` coordinates
438
440
439
441
Optional keyword arguments:
440
442
@@ -477,8 +479,8 @@ def __init__(self, fig, rect,
477
479
*yticklabels* sequence of strings
478
480
*yticks* sequence of floats
479
481
================ =========================================
480
- """ % { 'scale' : ' | ' . join (
481
- [ repr ( x ) for x in mscale . get_scale_names ()])}
482
+ """
483
+
482
484
martist .Artist .__init__ (self )
483
485
if isinstance (rect , mtransforms .Bbox ):
484
486
self ._position = rect
0 commit comments