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

Skip to content

Commit 72bb777

Browse files
committed
Add a proper docstring to AutoLocator
1 parent 95580d3 commit 72bb777

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/matplotlib/ticker.py

Lines 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)