class_docstr: : A matplotlib converter class.  Provides matplotlib conversion
  functionality for Monte Epoch and Duration classes.
class_docstr_tok: [":","A","matplotlib","converter","class",".","Provides","matplotlib","conversion","functionality","for","Monte","Epoch","and","Duration","classes","."]
docstr: : Convert value using unit to a float.  If value is a sequence, return
  the converted sequence.
  
  = INPUT VARIABLES
  - value   The value or list of values 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.
docstr_tok: [":","Convert","value","using","unit","to","a","float",".","If","value","is","a","sequence",",","return","the","converted","sequence",".","=","INPUT","VARIABLES","-","value","The","value","or","list","of","values","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","."]
code: def convert(value, unit, axis):
      """: Convert value using unit to a float.  If value is a sequence, return
      the converted sequence.
  
      = INPUT VARIABLES
      - value   The value or list of values 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.
      """
      # Delay-load due to circular dependencies.
      import matplotlib.testing.jpl_units as U
  
      isNotEpoch = True
      isDuration = False
  
      if iterable(value) and not isinstance(value, six.string_types):
          if len(value) == 0:
              return []
          else:
              return [
                  EpochConverter.convert(x, unit, axis) for x in value
              ]
  
      if isinstance(value, U.Epoch):
          isNotEpoch = False
      elif isinstance(value, U.Duration):
          isDuration = True
  
      if (
          isNotEpoch
          and not isDuration
          and units.ConversionInterface.is_numlike(value)
      ):
          return value
  
      if unit == None:
          unit = EpochConverter.default_units(value, axis)
  
      if isDuration:
          return EpochConverter.duration2float(value)
      else:
          return EpochConverter.epoch2float(value, unit)
  
file_path: catboost/contrib/python/matplotlib/py2/matplotlib/testing/jpl_units/EpochConverter.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  import matplotlib.units
  import matplotlib.dates
  from matplotlib.cbook import iterable
label_desc: Use image node_id 5 for calling the EpochConverter obj's underlying member method code with example usage: obj.convert(value, unit, axis) and returns: value, EpochConverter, EpochConverter, list, unknown