8000 Merge pull request #16338 from anntzer/symlogdoc · matplotlib/matplotlib@32d3306 · GitHub
[go: up one dir, main page]

Skip to content

Commit 32d3306

Browse files
authored
Merge pull request #16338 from anntzer/symlogdoc
Document SymmetricalLogLocator parameters.
2 parents 1b8ede6 + aba2973 commit 32d3306

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

lib/matplotlib/ticker.py

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2439,11 +2439,28 @@ def nonsingular(self, vmin, vmax):
24392439

24402440
class SymmetricalLogLocator(Locator):
24412441
"""
2442-
Determine the tick locations for symmetric log axes
2442+
Determine the tick locations for symmetric log axes.
24432443
"""
24442444

24452445
def __init__(self, transform=None, subs=None, linthresh=None, base=None):
2446-
"""Place ticks on the locations ``base**i*subs[j]``."""
2446+
"""
2447+
Parameters
2448+
----------
2449+
transform : `~.scale.SymmetricalLogTransform`, optional
2450+
If set, defines the *base* and *linthresh* of the symlog transform.
2451+
base, linthresh : float, optional
2452+
The *base* and *linthresh* of the symlog transform, as documented
2453+
for `.SymmetricalLogScale`. These parameters are only used if
2454+
*transform* is not set.
2455+
subs : sequence of float, default: [1]
2456+
The multiples of integer powers of the base where ticks are placed,
2457+
i.e., ticks are placed at
2458+
``[sub * base**i for i in ... for sub in subs]``.
2459+
2460+
Notes
2461+
-----
2462+
Either *transform*, or both *base* and *linthresh*, must be given.
2463+
"""
24472464
if transform is not None:
24482465
self._base = transform.base
24492466
self._linthresh = transform.linthresh

0 commit comments

Comments
 (0)
0