Skip to content

Commit 54b2a63

Browse files
authored
Merge pull request #23746 from tacaswell/doc_ticlocs
DOC: add numpydoc docstring + commentary to Axis.get_ticklocs
2 parents a663f7e + 9fca8ec commit 54b2a63

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

lib/matplotlib/axis.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1457,7 +1457,22 @@ def get_minorticklocs(self):
14571457
return minor_locs
14581458

14591459
def get_ticklocs(self, *, minor=False):
1460-
"""Return this Axis' tick locations in data coordinates."""
1460+
"""
1461+
Return this Axis' tick locations in data coordinates.
1462+
1463+
The locations are not clipped to the current axis limits and hence
1464+
may contain locations that are not visible in the output.
1465+
1466+
Parameters
1467+
----------
1468+
minor : bool, default: False
1469+
True to return the minor tick directions,
1470+
False to return the major tick directions.
1471+
1472+
Returns
1473+
-------
1474+
numpy array of tick locations
1475+
"""
14611476
return self.get_minorticklocs() if minor else self.get_majorticklocs()
14621477

14631478
def get_ticks_direction(self, minor=False):

0 commit comments

Comments
 (0)