8000 DOCS: document log locator's `numticks` · matplotlib/matplotlib@b190024 · GitHub
[go: up one dir, main page]

Skip to content

Commit b190024

Browse files
committed
DOCS: document log locator's numticks
1 parent df9223f commit b190024

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/matplotlib/ticker.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2353,6 +2353,8 @@ def __init__(self, base=10.0, subs=(1.0,), numdecs=4, numticks=None):
23532353
23542354
Parameters
23552355
----------
2356+
base : float, default: 10.0
2357+
The base of the log used, so ticks are placed at ``base**n``.
23562358
subs : None or str or sequence of float, default: (1.0,)
23572359
Gives the multiples of integer powers of the base at which
23582360
to place ticks. The default places ticks only at
@@ -2364,7 +2366,11 @@ def __init__(self, base=10.0, subs=(1.0,), numdecs=4, numticks=None):
23642366
placed only between integer powers; with ``'all'``, the
23652367
integer powers are included. A value of None is
23662368
equivalent to ``'auto'``.
2367-
2369+
numticks : None or int, default: None
2370+
The maximum number of ticks to allow on a given axis. The default
2371+
of ``None`` will try to choose intelligently as long as this
2372+
Locator has already been assigned to an axis using
2373+
`~.axis.Axis.get_tick_space`, but otherwise falls back to 9.
23682374
"""
23692375
if numticks is None:
23702376
if mpl.rcParams['_internal.classic_mode']:

0 commit comments

Comments
 (0)
0