Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 73f6b08

Browse files
committed
Update some axis docstrings.
1 parent 3bacb5f commit 73f6b08

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

lib/matplotlib/axis.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1790,28 +1790,28 @@ def _get_tick_boxes_siblings(self, xdir, renderer):
17901790
def _update_label_position(self, renderer):
17911791
"""
17921792
Update the label position based on the bounding box enclosing
1793-
all the ticklabels and axis spine
1793+
all the ticklabels and axis spine.
17941794
"""
17951795
raise NotImplementedError('Derived must override')
17961796

17971797
def _update_offset_text_position(self, bboxes, bboxes2):
17981798
"""
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.
18011801
"""
18021802
raise NotImplementedError('Derived must override')
18031803

18041804
def pan(self, numsteps):
1805-
'Pan *numsteps* (can be positive or negative)'
1805+
"""Pan by *numsteps* (can be positive or negative)."""
18061806
self.major.locator.pan(numsteps)
18071807

18081808
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."""
18101810
self.major.locator.zoom(direction)
18111811

18121812
def axis_date(self, tz=None):
18131813
"""
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.
18151815
18161816
Parameters
18171817
----------
@@ -1827,9 +1827,7 @@ def axis_date(self, tz=None):
18271827
self.update_units(datetime.datetime(2009, 1, 1, 0, 0, 0, 0, tz))
18281828

18291829
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."""
18331831
# Must be overridden in the subclass
18341832
raise NotImplementedError()
18351833

0 commit comments

Comments
 (0)