@@ -1961,8 +1961,8 @@ def _update_offset_text_position(self, bboxes, bboxes2):
19611961
19621962 def get_text_heights (self , renderer ):
19631963 """
1964- Returns the amount of space one should reserve for text
1965- above and below the axes. Returns a tuple (above, below)
1964+ Return how much space should be reserved for text above and below the
1965+ axes, as a pair of floats.
19661966 """
19671967 bbox , bbox2 = self .get_ticklabel_extents (renderer )
19681968 # MGDTODO: Need a better way to get the pad
@@ -1983,16 +1983,16 @@ def get_text_heights(self, renderer):
19831983
19841984 def set_ticks_position (self , position ):
19851985 """
1986- Set the ticks position (top, bottom, both, default or none)
1987- both sets the ticks to appear on both positions, but does not
1988- change the tick labels. 'default' resets the tick positions to
1989- the default: ticks on both positions, labels at bottom. 'none'
1990- can be used if you don't want any ticks. 'none' and 'both'
1991- affect only the ticks, not the labels.
1986+ Set the ticks position.
19921987
19931988 Parameters
19941989 ----------
19951990 position : {'top', 'bottom', 'both', 'default', 'none'}
1991+ 'both' sets the ticks to appear on both positions, but does not
1992+ change the tick labels. 'default' resets the tick positions to
1993+ the default: ticks on both positions, labels at bottom. 'none'
1994+ can be used if you don't want any ticks. 'none' and 'both'
1995+ affect only the ticks, not the labels.
19961996 """
19971997 cbook ._check_in_list (['top' , 'bottom' , 'both' , 'default' , 'none' ],
19981998 position = position )
@@ -2123,10 +2123,7 @@ def __init__(self, *args, **kwargs):
21232123 self .offset_text_position = 'left'
21242124
21252125 def contains (self , mouseevent ):
2126- """Test whether the mouse event occurred in the y axis.
2127-
2128- Returns *True* | *False*
2129- """
2126+ # docstring inherited
21302127 inside , info = self ._default_contains (mouseevent )
21312128 if inside is not None :
21322129 return inside , info
@@ -2271,16 +2268,16 @@ def get_text_widths(self, renderer):
22712268
22722269 def set_ticks_position (self , position ):
22732270 """
2274- Set the ticks position (left, right, both, default or none)
2275- 'both' sets the ticks to appear on both positions, but does not
2276- change the tick labels. 'default' resets the tick positions to
2277- the default: ticks on both positions, labels at left. 'none'
2278- can be used if you don't want any ticks. 'none' and 'both'
2279- affect only the ticks, not the labels.
2271+ Set the ticks position.
22802272
22812273 Parameters
22822274 ----------
22832275 position : {'left', 'right', 'both', 'default', 'none'}
2276+ 'both' sets the ticks to appear on both positions, but does not
2277+ change the tick labels. 'default' resets the tick positions to
2278+ the default: ticks on both positions, labels at left. 'none'
2279+ can be used if you don't want any ticks. 'none' and 'both'
2280+ affect only the ticks, not the labels.
22842281 """
22852282 cbook ._check_in_list (['left' , 'right' , 'both' , 'default' , 'none' ],
22862283 position = position )
0 commit comments