docstr: Sets the default axis ticks and labels
  
  Parameters
  ---------
  unit : :class:`.UnitData`
      object string unit information for value
  axis : :class:`~matplotlib.Axis.axis`
      axis for which information is being set
  
  Returns
  -------
  :class:~matplotlib.units.AxisInfo~
      Information to support default tick labeling
  
  .. note: axis is not used
docstr_tok: ["Sets","the","default","axis","ticks","and","labels","Parameters","--","--","--","--","-","unit",":",":","class",":","`",".UnitData","`","object","string","unit","information","for","value","axis",":",":","class",":","`","~matplotlib.Axis.axis","`","axis","for","which","information","is","being","set","Returns","--","--","--","-",":","class",":","~matplotlib.units.AxisInfo~","Information","to","support","default","tick","labeling","..","note",":","axis","is","not","used"]
code: def axisinfo(unit, axis):
      """Sets the default axis ticks and labels
  
      Parameters
      ---------
      unit : :class:`.UnitData`
          object string unit information for value
      axis : :class:`~matplotlib.Axis.axis`
          axis for which information is being set
  
      Returns
      -------
      :class:~matplotlib.units.AxisInfo~
          Information to support default tick labeling
  
      .. note: axis is not used
      """
      # 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 __future__ import absolute_import, division, print_function, unicode_literals
  from collections import OrderedDict
  import itertools
  import six
  import numpy
  import matplotlib.units
  import matplotlib.ticker
  from distutils.version import LooseVersion
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