@@ -1789,28 +1789,28 @@ def _get_tick_boxes_siblings(self, xdir, renderer):
1789
1789
def _update_label_position (self , renderer ):
1790
1790
"""
1791
1791
Update the label position based on the bounding box enclosing
1792
- all the ticklabels and axis spine
1792
+ all the ticklabels and axis spine.
1793
1793
"""
1794
1794
raise NotImplementedError ('Derived must override' )
1795
1795
1796
1796
def _update_offset_text_position (self , bboxes , bboxes2 ):
1797
1797
"""
1798
- Update the label position based on the sequence of bounding
1799
- boxes of all the ticklabels
1798
+ Update the offset text position based on the sequence of bounding
1799
+ boxes of all the ticklabels.
1800
1800
"""
1801
1801
raise NotImplementedError ('Derived must override' )
1802
1802
1803
1803
def pan (self , numsteps ):
1804
- ' Pan *numsteps* (can be positive or negative)'
1804
+ """ Pan by *numsteps* (can be positive or negative)."""
1805
1805
self .major .locator .pan (numsteps )
1806
1806
1807
1807
def zoom (self , direction ):
1808
- "Zoom in/out on axis; if *direction* is >0 zoom in, else zoom out"
1808
+ """ Zoom in/out on axis; if *direction* is >0 zoom in, else zoom out."" "
1809
1809
self .major .locator .zoom (direction )
1810
1810
1811
1811
def axis_date (self , tz = None ):
1812
1812
"""
1813
- Sets up x- axis ticks and labels that treat the x data as dates.
1813
+ Sets up axis ticks and labels treating data along this axis as dates.
1814
1814
1815
1815
Parameters
1816
1816
----------
@@ -1826,9 +1826,7 @@ def axis_date(self, tz=None):
1826
1826
self .update_units (datetime .datetime (2009 , 1 , 1 , 0 , 0 , 0 , 0 , tz ))
1827
1827
1828
1828
def get_tick_space (self ):
1829
- """
1830
- Return the estimated number of ticks that can fit on the axis.
1831
- """
1829
+ """Return the estimated number of ticks that can fit on the axis."""
1832
1830
# Must be overridden in the subclass
1833
1831
raise NotImplementedError ()
1834
1832
0 commit comments