Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 9, 2022. It is now read-only.

Commit 54b2a63

Browse files
Merge pull request matplotlib#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)

AltStyle によって変換されたページ (->オリジナル) /