MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / __init__

Method __init__

lib/matplotlib/scale.py:388–411  ·  view source on GitHub ↗

Parameters ---------- axis : `~matplotlib.axis.Axis` The axis for the scale. .. note:: This parameter is unused and about to be removed in the future. It can already now be left out because of special preprocessing,

(self, axis=None, *, base=10, subs=None, nonpositive="clip")

Source from the content-addressed store, hash-verified

386
387 @_make_axis_parameter_optional
388 def __init__(self, axis=None, *, base=10, subs=None, nonpositive="clip"):
389 """
390 Parameters
391 ----------
392 axis : `~matplotlib.axis.Axis`
393 The axis for the scale.
394
395 .. note::
396 This parameter is unused and about to be removed in the future.
397 It can already now be left out because of special preprocessing,
398 so that ``LogScale(base=2)`` is valid.
399
400 base : float, default: 10
401 The base of the logarithm.
402 nonpositive : {'clip', 'mask'}, default: 'clip'
403 Determines the behavior for non-positive values. They can either
404 be masked as invalid, or clipped to a very small positive number.
405 subs : sequence of int, default: None
406 Where to place the subticks between each major tick. For example,
407 in a log10 scale, ``[2, 3, 4, 5, 6, 7, 8, 9]`` will place 8
408 logarithmically spaced minor ticks between each major tick.
409 """
410 self._transform = LogTransform(base, nonpositive)
411 self.subs = subs
412
413 base = property(lambda self: self._transform.base)
414

Callers 10

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 1

LogTransformClass · 0.85

Tested by

no test coverage detected