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")
| 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 |