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

Appearance settings

Commit 73da078

Browse filesBrowse files
authored
Merge pull request #9568 from afvincent/proper_docstring_for_autolocator
Add a proper docstring to AutoLocator
2 parents c639af4 + 72bb777 commit 73da078
Copy full SHA for 73da078

File tree

Expand file treeCollapse file tree

1 file changed

+9
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+9
-0
lines changed

‎lib/matplotlib/ticker.py

Copy file name to clipboardExpand all lines: lib/matplotlib/ticker.py
+9Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2484,7 +2484,16 @@ def nonsingular(self, vmin, vmax):
24842484

24852485

24862486
class AutoLocator(MaxNLocator):
2487+
"""
2488+
Dynamically find major tick positions. This is actually a subclass
2489+
of `~matplotlib.ticker.MaxNLocator`, with parameters *nbins = 'auto'*
2490+
and *steps = [1, 2, 2.5, 5, 10]*.
2491+
"""
24872492
def __init__(self):
2493+
"""
2494+
To know the values of the non-public parameters, please have a
2495+
look to the defaults of `~matplotlib.ticker.MaxNLocator`.
2496+
"""
24882497
if rcParams['_internal.classic_mode']:
24892498
nbins = 9
24902499
steps = [1, 2, 5, 10]

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.