<divid="unreleased-message"> You are reading an old version of the documentation (v2.1.2). For the latest version see <ahref="https://matplotlib.org/stable/api/units_api.html">https://matplotlib.org/stable/api/units_api.html</a></div>
<p>information to support default axis labeling and tick labeling, and
default limits</p>
<p>majloc and minloc: TickLocators for the major and minor ticks
majfmt and minfmt: TickFormatters for the major and minor ticks
label: the default axis label
default_limits: the default min, max of the axis if no data is present
If any of the above are None, the axis will simply use the default</p>
</dd></dl>
<dlclass="class">
<dtid="matplotlib.units.ConversionInterface">
<emclass="property">class </em><codeclass="descclassname">matplotlib.units.</code><codeclass="descname">ConversionInterface</code><aclass="headerlink" href="#matplotlib.units.ConversionInterface" title="Permalink to this definition">¶</a></dt>
<emclass="property">static </em><codeclass="descname">axisinfo</code><spanclass="sig-paren">(</span><em>unit</em>, <em>axis</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.units.ConversionInterface.axisinfo" title="Permalink to this definition">¶</a></dt>
<dd><p>return an units.AxisInfo instance for axis with the specified units</p>
<emclass="property">static </em><codeclass="descname">convert</code><spanclass="sig-paren">(</span><em>obj</em>, <em>unit</em>, <em>axis</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.units.ConversionInterface.convert" title="Permalink to this definition">¶</a></dt>
<dd><p>convert obj using unit for the specified axis. If obj is a sequence,
return the converted sequence. The output must be a sequence of
scalars that can be used by the numpy array layer</p>
<emclass="property">static </em><codeclass="descname">default_units</code><spanclass="sig-paren">(</span><em>x</em>, <em>axis</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.units.ConversionInterface.default_units" title="Permalink to this definition">¶</a></dt>
<dd><p>return the default unit for x or None for the given axis</p>
<emclass="property">static </em><codeclass="descname">is_numlike</code><spanclass="sig-paren">(</span><em>x</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.units.ConversionInterface.is_numlike" title="Permalink to this definition">¶</a></dt>
<dd><p>The matplotlib datalim, autoscaling, locators etc work with
scalars which are the units converted to floats given the
current unit. The converter may be passed these floats, or
arrays of them, even when units are set. Derived conversion
interfaces may opt to pass plain-ol unitless numbers through
the conversion interface and this is a helper function for
them.</p>
</dd></dl>
</dd></dl>
<dlclass="class">
<dtid="matplotlib.units.Registry">
<emclass="property">class </em><codeclass="descclassname">matplotlib.units.</code><codeclass="descname">Registry</code><aclass="headerlink" href="#matplotlib.units.Registry" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">get_converter</code><spanclass="sig-paren">(</span><em>x</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.units.Registry.get_converter" title="Permalink to this definition">¶</a></dt>
<dd><p>get the converter interface instance for x, or None</p>