docstr: Set the default axis ticks and labels.
  
  Parameters
  ----------
  unit : `.UnitData`
      object string unit information for value
  axis : `~matplotlib.axis.Axis`
      axis for which information is being set
  
      .. note:: *axis* is not used
  
  Returns
  -------
  `~matplotlib.units.AxisInfo`
      Information to support default tick labeling
docstr_tok: ["Set","the","default","axis","ticks","and","labels",".","Parameters","--","--","--","--","--","unit",":","`",".UnitData","`","object","string","unit","information","for","value","axis",":","`","~matplotlib.axis.Axis","`","axis","for","which","information","is","being","set","..","note",":",":","*","axis","*","is","not","used","Returns","--","--","--","-","`","~matplotlib.units.AxisInfo","`","Information","to","support","default","tick","labeling"]
code: def axisinfo(unit, axis):
      """
      Set the default axis ticks and labels.
  
      Parameters
      ----------
      unit : `.UnitData`
          object string unit information for value
      axis : `~matplotlib.axis.Axis`
          axis for which information is being set
  
          .. note:: *axis* is not used
  
      Returns
      -------
      `~matplotlib.units.AxisInfo`
          Information to support default tick labeling
  
      """
      StrCategoryConverter._validate_unit(unit)
      # locator and formatter take mapping dict because
      # args need to be pass by reference for updates
      majloc = StrCategoryLocator(unit._mapping)
      majfmt = StrCategoryFormatter(unit._mapping)
      return units.AxisInfo(majloc=majloc, majfmt=majfmt)
  
imports: from collections import OrderedDict
  import dateutil.parser
  import itertools
  import logging
  import numpy
  from matplotlib import _api, ticker, units
label_desc: Use image node_id 2 for calling the StrCategoryConverter obj's underlying member method code with example usage: obj.axisinfo(unit, axis) and returns: units