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 b190024

Browse filesBrowse files
committed
DOCS: document log locator's numticks
1 parent df9223f commit b190024
Copy full SHA for b190024

File tree

Expand file treeCollapse file tree

1 file changed

+7
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-1
lines changed

‎lib/matplotlib/ticker.py

Copy file name to clipboardExpand all lines: lib/matplotlib/ticker.py
+7-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.