matplotlib.testing.jpl_units.StrConverter

StrConverter module containing class StrConverter.

Classes

  • StrConverter: A Matplotlib converter class for string data values.

class matplotlib.testing.jpl_units.StrConverter.StrConverter

A Matplotlib converter class for string data values.

Valid units for string are: - ‘indexed’ : Values are indexed as they are specified for plotting. - ‘sorted’ : Values are sorted alphanumerically. - ‘inverted’ : Values are inverted so that the first value is on top. - ‘sorted-inverted’ : A combination of ‘sorted’ and ‘inverted’

Inheritance

digraph inheritance74b22fdcef { 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"]; "StrConverter" [URL="#matplotlib.testing.jpl_units.StrConverter.StrConverter",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="A Matplotlib converter class for string data values."]; "ConversionInterface" -> "StrConverter" [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.