FuncScale¶
-
class
FuncScale
(axis, functions, transform=None, scale=None, major_locator=None, minor_locator=None, major_formatter=None, minor_formatter=None)[source]¶ Bases:
proplot.axistools._ScaleBase
,matplotlib.scale.ScaleBase
Arbitrary scale with user-supplied forward and inverse functions and arbitrary additional transform applied thereafter. Input is a tuple of functions and, optionally, a
Transform
orScaleBase
instance.- Parameters
axis (
Axis
) – The axis, required for compatibility reasons.functions ((function, function) or
ScaleBase
) – Length-2 tuple of forward and inverse functions, or anotherScaleBase
from which the functions are drawn.transform (
Transform
, optional) – Additional transform applied after the forward function and before the inverse function.major_locator, minor_locator (
Locator
, optional) – The default major and minor locator. By default these are the same asLinearScale
.major_formatter, minor_formatter (
Formatter
, optional) – The default major and minor formatter. By default these are the same asLinearScale
.
Attributes Summary
The registered scale name.