Parameters ---------- axis : `~matplotlib.axis.Axis` The axis for the scale. .. note:: This parameter is unused and will be removed in an imminent release. It can already be left out because of special preprocessing,
(self, axis, functions)
| 275 | |
| 276 | @_make_axis_parameter_optional |
| 277 | def __init__(self, axis, functions): |
| 278 | """ |
| 279 | Parameters |
| 280 | ---------- |
| 281 | axis : `~matplotlib.axis.Axis` |
| 282 | The axis for the scale. |
| 283 | |
| 284 | .. note:: |
| 285 | This parameter is unused and will be removed in an imminent release. |
| 286 | It can already be left out because of special preprocessing, |
| 287 | so that ``FuncScale(functions)`` is valid. |
| 288 | |
| 289 | functions : (callable, callable) |
| 290 | two-tuple of the forward and inverse functions for the scale. |
| 291 | The forward function must be monotonic. |
| 292 | |
| 293 | Both functions must have the signature:: |
| 294 | |
| 295 | def forward(values: array-like) -> array-like |
| 296 | """ |
| 297 | forward, inverse = functions |
| 298 | transform = FuncTransform(forward, inverse) |
| 299 | self._transform = transform |
| 300 | |
| 301 | def get_transform(self): |
| 302 | """Return the `.FuncTransform` associated with this scale.""" |
nothing calls this directly
no test coverage detected