mpl.units.ConversionInterface¶
-
class
mpl.units.ConversionInterface[source]¶ The minimal interface for a converter to take custom instances (or sequences) and convert them to values mpl can use
-
__init__¶ x.__init__(...) initializes x; see help(type(x)) for signature
-
Methods¶
axisinfo(unit, axis) |
return an units.AxisInfo instance for axis with the specified units |
convert(obj, unit, axis) |
convert obj using unit for the specified axis. If obj is a sequence, |
default_units(x, axis) |
return the default unit for x or None for the given axis |
is_numlike(x) |
The matplotlib datalim, autoscaling, locators etc work with scalars which are the units converted to floats given the current unit. |