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