@@ -1775,28 +1775,28 @@ def _get_tick_boxes_siblings(self, xdir, renderer):
1775
1775
def _update_label_position (self , renderer ):
1776
1776
"""
1777
1777
Update the label position based on the bounding box enclosing
1778
- all the ticklabels and axis spine
1778
+ all the ticklabels and axis spine.
1779
1779
"""
1780
1780
raise NotImplementedError ('Derived must override' )
1781
1781
1782
1782
def _update_offset_text_position (self , bboxes , bboxes2 ):
1783
1783
"""
1784
- Update the label position based on the sequence of bounding
1785
- boxes of all the ticklabels
1784
+ Update the offset text position based on the sequence of bounding
1785
+ boxes of all the ticklabels.
1786
1786
"""
1787
1787
raise NotImplementedError ('Derived must override' )
1788
1788
1789
1789
def pan (self , numsteps ):
1790
- ' Pan *numsteps* (can be positive or negative)'
1790
+ """ Pan by *numsteps* (can be positive or negative)."""
1791
1791
self .major .locator .pan (numsteps )
1792
1792
1793
1793
def zoom (self , direction ):
1794
- "Zoom in/out on axis; if *direction* is >0 zoom in, else zoom out"
1794
+ """ Zoom in/out on axis; if *direction* is >0 zoom in, else zoom out."" "
1795
1795
self .major .locator .zoom (direction )
1796
1796
1797
1797
def axis_date (self , tz = None ):
1798
1798
"""
1799
- Sets up x- axis ticks and labels that treat the x data as dates.
1799
+ Sets up axis ticks and labels treating data along this axis as dates.
1800
1800
1801
1801
Parameters
1802
1802
----------
@@ -1812,9 +1812,7 @@ def axis_date(self, tz=None):
1812
1812
self .update_units (datetime .datetime (2009 , 1 , 1 , 0 , 0 , 0 , 0 , tz ))
1813
1813
1814
1814
def get_tick_space (self ):
1815
- """
1816
- Return the estimated number of ticks that can fit on the axis.
1817
- """
1815
+ """Return the estimated number of ticks that can fit on the axis."""
1818
1816
# Must be overridden in the subclass
1819
1817
raise NotImplementedError ()
1820
1818
0 commit comments