matplotlib.testing.jpl_units.EpochConverter
EpochConverter module containing class EpochConverter.
Classes
EpochConverter
: Provides Matplotlib conversion functionality for Monte Epoch and Duration
- class matplotlib.testing.jpl_units.EpochConverter.EpochConverter
Provides Matplotlib conversion functionality for Monte Epoch and Duration classes.
Inheritance
digraph inheritance26ac5c1d37 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "ConversionInterface" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="The minimal interface for a converter to take custom data types (or"]; "EpochConverter" [URL="#matplotlib.testing.jpl_units.EpochConverter.EpochConverter",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Provides Matplotlib conversion functionality for Monte Epoch and Duration"]; "ConversionInterface" -> "EpochConverter" [arrowsize=0.5,style="setlinewidth(0.5)"]; }- static axisinfo(unit, axis)
Return an .AxisInfo for the axis with the specified units.
- static convert(value, unit, axis)
Convert obj using unit for the specified axis.
If obj is a sequence, return the converted sequence. The output must be a sequence of scalars that can be used by the numpy array layer.
- static default_units(value, axis)
Return the default unit for x or
None
for the given axis.
- static duration2float(value)
Convert a Duration value to a float suitable for plotting as a python datetime object.
= INPUT VARIABLES - value A Duration or list of Durations that need to be converted.
= RETURN VALUE - Returns the value parameter converted to floats.
- static epoch2float(value, unit)
Convert an Epoch value to a float suitable for plotting as a python datetime object.
= INPUT VARIABLES - value An Epoch or list of Epochs that need to be converted. - unit The units to use for an axis with Epoch data.
= RETURN VALUE - Returns the value parameter converted to floats.
- static float2epoch(value, unit)
Convert a Matplotlib floating-point date into an Epoch of the specified units.
= INPUT VARIABLES - value The Matplotlib floating-point date. - unit The unit system to use for the Epoch.
= RETURN VALUE - Returns the value converted to an Epoch in the specified time system.