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, functions, base=10)
| 455 | |
| 456 | @_make_axis_parameter_optional |
| 457 | def __init__(self, axis, functions, base=10): |
| 458 | """ |
| 459 | Parameters |
| 460 | ---------- |
| 461 | axis : `~matplotlib.axis.Axis` |
| 462 | The axis for the scale. |
| 463 | |
| 464 | .. note:: |
| 465 | This parameter is unused and about to be removed in the future. |
| 466 | It can already now be left out because of special preprocessing, |
| 467 | so that ``FuncScaleLog(functions=(forward, inverse))`` is valid. |
| 468 | functions : (callable, callable) |
| 469 | two-tuple of the forward and inverse functions for the scale. |
| 470 | The forward function must be monotonic. |
| 471 | |
| 472 | Both functions must have the signature:: |
| 473 | |
| 474 | def forward(values: array-like) -> array-like |
| 475 | |
| 476 | base : float, default: 10 |
| 477 | Logarithmic base of the scale. |
| 478 | """ |
| 479 | forward, inverse = functions |
| 480 | self.subs = None |
| 481 | self._transform = FuncTransform(forward, inverse) + LogTransform(base) |
| 482 | |
| 483 | @property |
| 484 | def base(self): |
nothing calls this directly
no test coverage detected