@@ -251,7 +251,9 @@ def set_pad(self, val):
251251 """
252252 Set the tick label pad in points
253253
254- ACCEPTS: float
254+ Parameters
255+ ----------
256+ val : float
255257 """
256258 self ._apply_params (pad = val )
257259 self .stale = True
@@ -308,9 +310,11 @@ def draw(self, renderer):
308310
309311 def set_label1 (self , s ):
310312 """
311- Set the text of ticklabel
313+ Set the label1 text.
312314
313- ACCEPTS: str
315+ Parameters
316+ ----------
317+ s : str
314318 """
315319 self .label1 .set_text (s )
316320 self .stale = True
@@ -319,9 +323,11 @@ def set_label1(self, s):
319323
320324 def set_label2 (self , s ):
321325 """
322- Set the text of ticklabel2
326+ Set the label2 text.
323327
324- ACCEPTS: str
328+ Parameters
329+ ----------
330+ s : str
325331 """
326332 self .label2 .set_text (s )
327333 self .stale = True
@@ -1538,7 +1544,8 @@ def get_units(self):
15381544 return self .units
15391545
15401546 def set_label_text (self , label , fontdict = None , ** kwargs ):
1541- """ Sets the text value of the axis label
1547+ """
1548+ Set the text value of the axis label.
15421549
15431550 ACCEPTS: A string value for the label
15441551 """
@@ -1552,9 +1559,11 @@ def set_label_text(self, label, fontdict=None, **kwargs):
15521559
15531560 def set_major_formatter (self , formatter ):
15541561 """
1555- Set the formatter of the major ticker
1562+ Set the formatter of the major ticker.
15561563
1557- ACCEPTS: A :class:`~matplotlib.ticker.Formatter` instance
1564+ Parameters
1565+ ----------
1566+ formatter : ~matplotlib.ticker.Formatter
15581567 """
15591568 if not isinstance (formatter , mticker .Formatter ):
15601569 raise TypeError ("formatter argument should be instance of "
@@ -1566,9 +1575,11 @@ def set_major_formatter(self, formatter):
15661575
15671576 def set_minor_formatter (self , formatter ):
15681577 """
1569- Set the formatter of the minor ticker
1578+ Set the formatter of the minor ticker.
15701579
1571- ACCEPTS: A :class:`~matplotlib.ticker.Formatter` instance
1580+ Parameters
1581+ ----------
1582+ formatter : ~matplotlib.ticker.Formatter
15721583 """
15731584 if not isinstance (formatter , mticker .Formatter ):
15741585 raise TypeError ("formatter argument should be instance of "
@@ -1580,9 +1591,11 @@ def set_minor_formatter(self, formatter):
15801591
15811592 def set_major_locator (self , locator ):
15821593 """
1583- Set the locator of the major ticker
1594+ Set the locator of the major ticker.
15841595
1585- ACCEPTS: a :class:`~matplotlib.ticker.Locator` instance
1596+ Parameters
1597+ ----------
1598+ locator : ~matplotlib.ticker.Locator
15861599 """
15871600 if not isinstance (locator , mticker .Locator ):
15881601 raise TypeError ("formatter argument should be instance of "
@@ -1594,9 +1607,11 @@ def set_major_locator(self, locator):
15941607
15951608 def set_minor_locator (self , locator ):
15961609 """
1597- Set the locator of the minor ticker
1610+ Set the locator of the minor ticker.
15981611
1599- ACCEPTS: a :class:`~matplotlib.ticker.Locator` instance
1612+ Parameters
1613+ ----------
1614+ locator : ~matplotlib.ticker.Locator
16001615 """
16011616 if not isinstance (locator , mticker .Locator ):
16021617 raise TypeError ("formatter argument should be instance of "
@@ -1608,9 +1623,11 @@ def set_minor_locator(self, locator):
16081623
16091624 def set_pickradius (self , pickradius ):
16101625 """
1611- Set the depth of the axis used by the picker
1626+ Set the depth of the axis used by the picker.
16121627
1613- ACCEPTS: a distance in points
1628+ Parameters
1629+ ----------
1630+ pickradius : float
16141631 """
16151632 self .pickradius = pickradius
16161633
@@ -1749,7 +1766,9 @@ def set_label_position(self, position):
17491766 """
17501767 Set the label position (top or bottom)
17511768
1752- ACCEPTS: [ 'top' | 'bottom' ]
1769+ Parameters
1770+ ----------
1771+ position : {'top', 'bottom'}
17531772 """
17541773 raise NotImplementedError ()
17551774
@@ -1859,7 +1878,9 @@ def set_label_position(self, position):
18591878 """
18601879 Set the label position (top or bottom)
18611880
1862- ACCEPTS: [ 'top' | 'bottom' ]
1881+ Parameters
1882+ ----------
1883+ position : {'top', 'bottom'}
18631884 """
18641885 if position == 'top' :
18651886 self .label .set_verticalalignment ('baseline' )
@@ -1978,7 +1999,9 @@ def set_ticks_position(self, position):
19781999 can be used if you don't want any ticks. 'none' and 'both'
19792000 affect only the ticks, not the labels.
19802001
1981- ACCEPTS: [ 'top' | 'bottom' | 'both' | 'default' | 'none' ]
2002+ Parameters
2003+ ----------
2004+ position : {'top', 'bottom', 'both', 'default', 'none'}
19822005 """
19832006 if position == 'top' :
19842007 self .set_tick_params (which = 'both' , top = True , labeltop = True ,
@@ -2226,7 +2249,9 @@ def set_label_position(self, position):
22262249 """
22272250 Set the label position (left or right)
22282251
2229- ACCEPTS: [ 'left' | 'right' ]
2252+ Parameters
2253+ ----------
2254+ position : {'left', 'right'}
22302255 """
22312256 self .label .set_rotation_mode ('anchor' )
22322257 self .label .set_horizontalalignment ('center' )
@@ -2313,7 +2338,9 @@ def _update_offset_text_position(self, bboxes, bboxes2):
23132338
23142339 def set_offset_position (self , position ):
23152340 """
2316- .. ACCEPTS: [ 'left' | 'right' ]
2341+ Parameters
2342+ ----------
2343+ position : {'left', 'right'}
23172344 """
23182345 x , y = self .offsetText .get_position ()
23192346 if position == 'left' :
@@ -2354,7 +2381,9 @@ def set_ticks_position(self, position):
23542381 can be used if you don't want any ticks. 'none' and 'both'
23552382 affect only the ticks, not the labels.
23562383
2357- ACCEPTS: [ 'left' | 'right' | 'both' | 'default' | 'none' ]
2384+ Parameters
2385+ ----------
2386+ position : {'left', 'right', 'both', 'default', 'none'}
23582387 """
23592388 if position == 'right' :
23602389 self .set_tick_params (which = 'both' , right = True , labelright = True ,
0 commit comments