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

Skip to content

Commit b2c4964

Browse files
authored
Merge pull request #24435 from dstansby/ll-docstring
Minor improvements to LogLocator docstring
2 parents 5e5df02 + 3238b73 commit b2c4964

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
@@ -2259,19 +2259,19 @@ class LogLocator(Locator):
22592259

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

0 commit comments

Comments
 (0)