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

Skip to content

Commit ead3d4f

Browse files
authored
Merge pull request #24438 from meeseeksmachine/auto-backport-of-pr-24435-on-v3.6.x
Backport PR #24435 on branch v3.6.x (Minor improvements to LogLocator docstring)
2 parents 67987b8 + b9058ff commit ead3d4f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/matplotlib/ticker.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2262,19 +2262,19 @@ class LogLocator(Locator):
22622262

22632263
def __init__(self, base=10.0, subs=(1.0,), numdecs=4, numticks=None):
22642264
"""
2265-
Place ticks on the locations : subs[j] * base**i
2265+
Place ticks at values ``subs[j] * base**n``.
22662266
22672267
Parameters
22682268
----------
22692269
base : float, default: 10.0
22702270
The base of the log used, so major ticks are placed at
2271-
``base**n``, n integer.
2272-
subs : None or str or sequence of float, default: (1.0,)
2271+
``base**n``, where ``n`` is an integer.
2272+
subs : None or {'auto', 'all'} or sequence of float, default: (1.0,)
22732273
Gives the multiples of integer powers of the base at which
2274-
to place ticks. The default places ticks only at
2274+
to place ticks. The default of ``(1.0, )`` places ticks only at
22752275
integer powers of the base.
2276-
The permitted string values are ``'auto'`` and ``'all'``,
2277-
both of which use an algorithm based on the axis view
2276+
Permitted string values are ``'auto'`` and ``'all'``.
2277+
Both of these use an algorithm based on the axis view
22782278
limits to determine whether and how to put ticks between
22792279
integer powers of the base. With ``'auto'``, ticks are
22802280
placed only between integer powers; with ``'all'``, the

0 commit comments

Comments
 (0)