@@ -1961,8 +1961,8 @@ def _update_offset_text_position(self, bboxes, bboxes2):
1961
1961
1962
1962
def get_text_heights (self , renderer ):
1963
1963
"""
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.
1966
1966
"""
1967
1967
bbox , bbox2 = self .get_ticklabel_extents (renderer )
1968
1968
# MGDTODO: Need a better way to get the pad
@@ -1983,16 +1983,16 @@ def get_text_heights(self, renderer):
1983
1983
1984
1984
def set_ticks_position (self , position ):
1985
1985
"""
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.
1992
1987
1993
1988
Parameters
1994
1989
----------
1995
1990
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.
1996
1996
"""
1997
1997
cbook ._check_in_list (['top' , 'bottom' , 'both' , 'default' , 'none' ],
1998
1998
position = position )
@@ -2123,10 +2123,7 @@ def __init__(self, *args, **kwargs):
2123
2123
self .offset_text_position = 'left'
2124
2124
2125
2125
def contains (self , mouseevent ):
2126
- """Test whether the mouse event occurred in the y axis.
2127
-
2128
- Returns *True* | *False*
2129
- """
2126
+ # docstring inherited
2130
2127
inside , info = self ._default_contains (mouseevent )
2131
2128
if inside is not None :
2132
2129
return inside , info
@@ -2271,16 +2268,16 @@ def get_text_widths(self, renderer):
2271
2268
2272
2269
def set_ticks_position (self , position ):
2273
2270
"""
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.
2280
2272
2281
2273
Parameters
2282
2274
----------
2283
2275
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.
2284
2281
"""
2285
2282
cbook ._check_in_list (['left' , 'right' , 'both' , 'default' , 'none' ],
2286
2283
position = position )
0 commit comments