': Returns information on how to handle an axis that has Epoch data.
= INPUT VARIABLES
- unit    The units to use for a axis with Epoch data.
= RETURN VALUE
- Returns a matplotlib AxisInfo data structure that contains
minor/major formatters, major/minor locators, and default
label information.'

@staticmethod
def axisinfo(unit, axis):

    import matplotlib.testing.jpl_units as U
    if unit:
        if isinstance(unit, six.string_types):
            label = unit
        else:
            label = unit.label()
    else:
        label = None
    if ((label == u'deg') and isinstance(axis.axes, polar.PolarAxes)):
        majfmt = polar.PolarAxes.ThetaFormatter()
    else:
        majfmt = U.UnitDblFormatter(useOffset=False)
    return units.AxisInfo(majfmt=majfmt, label=label)
