class_docstr: Provides Matplotlib conversion functionality for the Monte UnitDbl class.
code: def axisinfo(unit, axis):
      # docstring inherited
  
      # Delay-load due to circular dependencies.
      import matplotlib.testing.jpl_units as U
  
      # Check to see if the value used for units is a string unit value
      # or an actual instance of a UnitDbl so that we can use the unit
      # value for the default axis label value.
      if unit:
          label = unit if isinstance(unit, str) else unit.label()
      else:
          label = None
  
      if label == "deg" and isinstance(axis.axes, polar.PolarAxes):
          # If we want degrees for a polar plot, use the PolarPlotFormatter
          majfmt = polar.PolarAxes.ThetaFormatter()
      else:
          majfmt = U.UnitDblFormatter(useOffset=False)
  
      return units.AxisInfo(majfmt=majfmt, label=label)
  
file_path: catboost/contrib/python/matplotlib/py3/matplotlib/testing/jpl_units/UnitDblConverter.py
imports: import numpy
  from matplotlib import cbook, units
  import matplotlib.projections.polar
label_desc: Use image node_id 1 for calling the UnitDblConverter obj's underlying member method code with example usage: obj.axisinfo(unit, axis) and returns: units