You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
<divid="unreleased-message"> You are reading an old version of the documentation (v3.3.0). For the latest version see <ahref="https://matplotlib.org/stable/api/mathtext_api.html">https://matplotlib.org/stable/api/mathtext_api.html</a></div>
<h1><codeclass="docutils literal notranslate"><spanclass="pre">matplotlib.mathtext</span></code><aclass="headerlink" href="#matplotlib-mathtext" title="Permalink to this headline">¶</a></h1>
<divclass="graphviz"><imgsrc="../_images/inheritance-31c6483a1a8a734299322ca6ff6418b869fc4b18.png" alt="Inheritance diagram of matplotlib.mathtext" usemap="#inheritance0ca9968ee0" class="inheritance graphviz" /></div>
<areashape="rect" id="node1" href="#matplotlib.mathtext.Accent" target="_top" title="The font metrics need to be dealt with differently for accents," alt="" coords="420,438,470,457"/>
<areashape="rect" id="node2" href="#matplotlib.mathtext.Char" target="_top" title="A single character." alt="" coords="227,440,266,459"/>
<areashape="rect" id="node3" href="#matplotlib.mathtext.AutoHeightChar" target="_top" title="A character as close to the given height and depth as possible." alt="" coords="658,399,762,418"/>
<areashape="rect" id="node4" href="#matplotlib.mathtext.Hlist" target="_top" title="A horizontal list of boxes." alt="" coords="569,462,607,480"/>
<areashape="rect" id="node5" href="#matplotlib.mathtext.AutoWidthChar" target="_top" title="A character as close to the given width as possible." alt="" coords="660,431,760,449"/>
<areashape="rect" id="node24" href="#matplotlib.mathtext.HCentered" target="_top" title="A convenience class to create an `Hlist` whose contents are" alt="" coords="674,462,746,480"/>
<areashape="rect" id="node51" href="#matplotlib.mathtext.SubSuperCluster" target="_top" title="A hack to get around that fact that this code does a two-pass parse like" alt="" coords="656,493,764,512"/>
<areashape="rect" id="node6" href="#matplotlib.mathtext.BakomaFonts" target="_top" title="Use the Bakoma TrueType fonts for rendering." alt="" coords="401,331,490,350"/>
<areashape="rect" id="node7" href="#matplotlib.mathtext.TruetypeFonts" target="_top" title="A generic base class for all font setups that use Truetype fonts" alt="" coords="200,347,293,365"/>
<areashape="rect" id="node13" href="#matplotlib.mathtext.UnicodeFonts" target="_top" title="An abstract base class for handling Unicode fonts." alt="" coords="400,362,490,381"/>
<areashape="rect" id="node8" href="#matplotlib.mathtext.Box" target="_top" title="A node with a physical location." alt="" coords="227,532,266,551"/>
<areashape="rect" id="node25" href="#matplotlib.mathtext.Hbox" target="_top" title="A box with only width (zero height and depth)." alt="" coords="424,470,466,488"/>
<areashape="rect" id="node26" href="#matplotlib.mathtext.List" target="_top" title="A list of nodes (either horizontal or vertical)." alt="" coords="426,501,464,519"/>
<areashape="rect" id="node28" href="#matplotlib.mathtext.Rule" target="_top" title="A solid black rectangle." alt="" coords="426,532,464,551"/>
<areashape="rect" id="node54" href="#matplotlib.mathtext.Vbox" target="_top" title="A box with only height (zero width)." alt="" coords="425,563,465,582"/>
<areashape="rect" id="node9" href="#matplotlib.mathtext.Node" target="_top" title="A node in the TeX box model." alt="" coords="43,595,85,613"/>
<areashape="rect" id="node19" href="#matplotlib.mathtext.Glue" target="_top" title="Most of the information in this object is stored in the underlying" alt="" coords="227,657,266,676"/>
<areashape="rect" id="node29" href="#matplotlib.mathtext.Kern" target="_top" title="A `Kern` node has a width field to specify a (normally" alt="" coords="227,688,266,707"/>
<areashape="rect" id="node11" href="#matplotlib.mathtext.FontConstantsBase" target="_top" title="A set of constants that controls how certain things, such as sub-" alt="" coords="3,253,124,271"/>
<areashape="rect" id="node15" href="#matplotlib.mathtext.DejaVuSansFonts" target="_top" title="A font handling class for the DejaVu Sans fonts" alt="" coords="655,303,765,322"/>
<areashape="rect" id="node17" href="#matplotlib.mathtext.DejaVuSerifFonts" target="_top" title="A font handling class for the DejaVu Serif fonts" alt="" coords="655,335,765,353"/>
<areashape="rect" id="node49" href="#matplotlib.mathtext.StixFonts" target="_top" title="A font handling class for the STIX fonts." alt="" coords="556,366,621,384"/>
<areashape="rect" id="node22" href="#matplotlib.mathtext.Fonts" target="_top" title="An abstract base class for a system of fonts to use for mathtext." alt="" coords="42,362,85,381"/>
<areashape="rect" id="node48" href="#matplotlib.mathtext.StandardPsFonts" target="_top" title="Use the standard postscript fonts for rendering to backend_ps" alt="" coords="193,378,300,396"/>
<areashape="rect" id="node23" href="#matplotlib.mathtext.GlueSpec" target="_top" title="[*Deprecated*] See `Glue`." alt="" coords="30,202,97,220"/>
<areashape="rect" id="node53" href="#matplotlib.mathtext.Vlist" target="_top" title="A vertical list of boxes." alt="" coords="569,501,607,519"/>
<areashape="rect" id="node27" href="#matplotlib.mathtext.Hrule" target="_top" title="Convenience class to create a horizontal rule." alt="" coords="567,532,610,551"/>
<areashape="rect" id="node55" href="#matplotlib.mathtext.Vrule" target="_top" title="Convenience class to create a vertical rule." alt="" coords="567,563,609,582"/>
<areashape="rect" id="node32" href="#matplotlib.mathtext.MathtextBackend" target="_top" title="The base class for the mathtext backend-specific code.  `MathtextBackend`" alt="" coords="7,81,120,99"/>
<areashape="rect" id="node33" href="#matplotlib.mathtext.MathtextBackendAgg" target="_top" title="Render glyphs and rectangles to an FTImage buffer, which is later" alt="" coords="179,3,314,21"/>
<areashape="rect" id="node35" href="#matplotlib.mathtext.MathtextBackendCairo" target="_top" title="Store information to write a mathtext rendering to the Cairo" alt="" coords="176,34,317,53"/>
<areashape="rect" id="node36" href="#matplotlib.mathtext.MathtextBackendPath" target="_top" title="Store information to write a mathtext rendering to the text path" alt="" coords="178,65,315,84"/>
<areashape="rect" id="node37" href="#matplotlib.mathtext.MathtextBackendPdf" target="_top" title="Store information to write a mathtext rendering to the PDF backend." alt="" coords="181,97,312,115"/>
<areashape="rect" id="node38" href="#matplotlib.mathtext.MathtextBackendPs" target="_top" title="Store information to write a mathtext rendering to the PostScript backend." alt="" coords="184,128,309,146"/>
<areashape="rect" id="node39" href="#matplotlib.mathtext.MathtextBackendSvg" target="_top" title="Store information to write a mathtext rendering to the SVG" alt="" coords="180,159,313,178"/>
<areashape="rect" id="node43" href="#matplotlib.mathtext.Parser" target="_top" title="A pyparsing-based parser for strings containing math expressions." alt="" coords="40,50,87,68"/>
<areashape="rect" id="node46" href="#matplotlib.mathtext.Ship" target="_top" title="Ship boxes to output once they have been set up, this sends them to output." alt="" coords="44,18,83,37"/>
<areashape="rect" id="node50" href="#matplotlib.mathtext.StixSansFonts" target="_top" title="A font handling class for the STIX fonts (that uses sans-serif" alt="" coords="664,366,756,384"/>
<areashape="rect" id="node52" href="#matplotlib.mathtext.VCentered" target="_top" title="A convenience class to create a `Vlist` whose contents are" alt="" coords="674,524,746,543"/>
</map><spanclass="target" id="module-matplotlib.mathtext"></span><p>A module for parsing a subset of the TeX math syntax and rendering it to a
Matplotlib backend.</p>
<p>For a tutorial of its usage, see <aclass="reference internal" href="../tutorials/text/mathtext.html"><spanclass="doc">Writing mathematical expressions</span></a>. This
document is primarily concerned with implementation details.</p>
<p>The module uses <aclass="reference external" href="https://pypi.org/project/pyparsing/">pyparsing</a> to parse the TeX expression.</p>
<p>The Bakoma distribution of the TeX Computer Modern fonts, and STIX
fonts are supported. There is experimental support for using
arbitrary fonts, but results may vary without proper tweaking and
metrics for those fonts.</p>
<dlclass="class">
<dtid="matplotlib.mathtext.Accent">
<emclass="property">class </em><codeclass="descclassname">matplotlib.mathtext.</code><codeclass="descname">Accent</code><spanclass="sig-paren">(</span><em>c</em>, <em>state</em>, <em>math=True</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#Accent"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.Accent" title="Permalink to this definition">¶</a></dt>
<p>The font metrics need to be dealt with differently for accents,
since they are already offset correctly from the baseline in
TrueType fonts.</p>
<dlclass="method">
<dtid="matplotlib.mathtext.Accent.grow">
<codeclass="descname">grow</code><spanclass="sig-paren">(</span><em>self</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#Accent.grow"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.Accent.grow" title="Permalink to this definition">¶</a></dt>
<dd><p>Grows one level larger. There is no limit to how big
something can get.</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.mathtext.Accent.render">
<codeclass="descname">render</code><spanclass="sig-paren">(</span><em>self</em>, <em>x</em>, <em>y</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#Accent.render"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.Accent.render" title="Permalink to this definition">¶</a></dt>
<dd><p>Render the character to the canvas.</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.mathtext.Accent.shrink">
<codeclass="descname">shrink</code><spanclass="sig-paren">(</span><em>self</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#Accent.shrink"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.Accent.shrink" title="Permalink to this definition">¶</a></dt>
<dd><p>Shrinks one level smaller. There are only three levels of
sizes, after which things will no longer get smaller.</p>
</dd></dl>
</dd></dl>
<dlclass="class">
<dtid="matplotlib.mathtext.AutoHeightChar">
<emclass="property">class </em><codeclass="descclassname">matplotlib.mathtext.</code><codeclass="descname">AutoHeightChar</code><spanclass="sig-paren">(</span><em>c</em>, <em>height</em>, <em>depth</em>, <em>state</em>, <em>always=False</em>, <em>factor=None</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#AutoHeightChar"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.AutoHeightChar" title="Permalink to this definition">¶</a></dt>
<p>A character as close to the given width as possible.</p>
<p>When using a font with multiple width versions of some characters (such as
the BaKoMa fonts), the correct glyph will be selected, otherwise this will
always just return a scaled version of the glyph.</p>
</dd></dl>
<dlclass="class">
<dtid="matplotlib.mathtext.BakomaFonts">
<emclass="property">class </em><codeclass="descclassname">matplotlib.mathtext.</code><codeclass="descname">BakomaFonts</code><spanclass="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#BakomaFonts"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.BakomaFonts" title="Permalink to this definition">¶</a></dt>
<trclass="field-odd field"><thclass="field-name">Parameters:</th><tdclass="field-body"><dlclass="first last docutils">
<dt><strong>default_font_prop: `~.font_manager.FontProperties`</strong></dt><dd><p>The default non-math font, or the base font for Unicode (generic)
font rendering.</p>
</dd>
<dt><strong>mathtext_backend: `MathtextBackend` subclass</strong></dt><dd><p>Backend to which rendering is actually delegated.</p>
</dd>
</dl>
</td>
</tr>
</tbody>
</table>
<dlclass="attribute">
<dtid="matplotlib.mathtext.BakomaFonts.alias">
<codeclass="descname">alias</code><emclass="property"> = '\\]'</em><aclass="headerlink" href="#matplotlib.mathtext.BakomaFonts.alias" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">get_sized_alternatives_for_symbol</code><spanclass="sig-paren">(</span><em>self</em>, <em>fontname</em>, <em>sym</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#BakomaFonts.get_sized_alternatives_for_symbol"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.BakomaFonts.get_sized_alternatives_for_symbol" title="Permalink to this definition">¶</a></dt>
<dd><p>Override if your font provides multiple sizes of the same
symbol. Should return a list of symbols matching <em>sym</em> in
various sizes. The expression renderer will select the most
appropriate size for a given situation from this list.</p>
</dd></dl>
<dlclass="attribute">
<dtid="matplotlib.mathtext.BakomaFonts.target">
<codeclass="descname">target</code><emclass="property"> = ']'</em><aclass="headerlink" href="#matplotlib.mathtext.BakomaFonts.target" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
</dd></dl>
<dlclass="class">
<dtid="matplotlib.mathtext.Box">
<emclass="property">class </em><codeclass="descclassname">matplotlib.mathtext.</code><codeclass="descname">Box</code><spanclass="sig-paren">(</span><em>width</em>, <em>height</em>, <em>depth</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#Box"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.Box" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">grow</code><spanclass="sig-paren">(</span><em>self</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#Box.grow"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.Box.grow" title="Permalink to this definition">¶</a></dt>
<dd><p>Grows one level larger. There is no limit to how big
something can get.</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.mathtext.Box.render">
<codeclass="descname">render</code><spanclass="sig-paren">(</span><em>self</em>, <em>x1</em>, <em>y1</em>, <em>x2</em>, <em>y2</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#Box.render"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.Box.render" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="method">
<dtid="matplotlib.mathtext.Box.shrink">
<codeclass="descname">shrink</code><spanclass="sig-paren">(</span><em>self</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#Box.shrink"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.Box.shrink" title="Permalink to this definition">¶</a></dt>
<dd><p>Shrinks one level smaller. There are only three levels of
sizes, after which things will no longer get smaller.</p>
</dd></dl>
</dd></dl>
<dlclass="class">
<dtid="matplotlib.mathtext.Char">
<emclass="property">class </em><codeclass="descclassname">matplotlib.mathtext.</code><codeclass="descname">Char</code><spanclass="sig-paren">(</span><em>c</em>, <em>state</em>, <em>math=True</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#Char"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.Char" title="Permalink to this definition">¶</a></dt>
<p>Unlike TeX, the font information and metrics are stored with each <aclass="reference internal" href="#matplotlib.mathtext.Char" title="matplotlib.mathtext.Char"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">Char</span></code></a>
to make it easier to lookup the font metrics when needed. Note that TeX
boxes have a width, height, and depth, unlike Type1 and TrueType which use
a full bounding box and an advance in the x-direction. The metrics must
be converted to the TeX model, and the advance (if different from width)
must be converted into a <aclass="reference internal" href="#matplotlib.mathtext.Kern" title="matplotlib.mathtext.Kern"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">Kern</span></code></a> node when the <aclass="reference internal" href="#matplotlib.mathtext.Char" title="matplotlib.mathtext.Char"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">Char</span></code></a> is added to its parent
<codeclass="descname">get_kerning</code><spanclass="sig-paren">(</span><em>self</em>, <em>next</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#Char.get_kerning"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.Char.get_kerning" title="Permalink to this definition">¶</a></dt>
<dd><p>Return the amount of kerning between this and the given character.</p>
<p>This method is called when characters are strung together into <aclass="reference internal" href="#matplotlib.mathtext.Hlist" title="matplotlib.mathtext.Hlist"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">Hlist</span></code></a>
<codeclass="descname">grow</code><spanclass="sig-paren">(</span><em>self</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#Char.grow"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.Char.grow" title="Permalink to this definition">¶</a></dt>
<dd><p>Grows one level larger. There is no limit to how big
something can get.</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.mathtext.Char.is_slanted">
<codeclass="descname">is_slanted</code><spanclass="sig-paren">(</span><em>self</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#Char.is_slanted"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.Char.is_slanted" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="method">
<dtid="matplotlib.mathtext.Char.render">
<codeclass="descname">render</code><spanclass="sig-paren">(</span><em>self</em>, <em>x</em>, <em>y</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#Char.render"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.Char.render" title="Permalink to this definition">¶</a></dt>
<dd><p>Render the character to the canvas</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.mathtext.Char.shrink">
<codeclass="descname">shrink</code><spanclass="sig-paren">(</span><em>self</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#Char.shrink"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.Char.shrink" title="Permalink to this definition">¶</a></dt>
<dd><p>Shrinks one level smaller. There are only three levels of
sizes, after which things will no longer get smaller.</p>
<emclass="property">class </em><codeclass="descclassname">matplotlib.mathtext.</code><codeclass="descname">ComputerModernFontConstants</code><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#ComputerModernFontConstants"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.ComputerModernFontConstants" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">delta</code><emclass="property"> = 0.075</em><aclass="headerlink" href="#matplotlib.mathtext.ComputerModernFontConstants.delta" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">delta_integral</code><emclass="property"> = 0.3</em><aclass="headerlink" href="#matplotlib.mathtext.ComputerModernFontConstants.delta_integral" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">delta_slanted</code><emclass="property"> = 0.3</em><aclass="headerlink" href="#matplotlib.mathtext.ComputerModernFontConstants.delta_slanted" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">script_space</code><emclass="property"> = 0.075</em><aclass="headerlink" href="#matplotlib.mathtext.ComputerModernFontConstants.script_space" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">sub1</code><emclass="property"> = 0.2</em><aclass="headerlink" href="#matplotlib.mathtext.ComputerModernFontConstants.sub1" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">sub2</code><emclass="property"> = 0.3</em><aclass="headerlink" href="#matplotlib.mathtext.ComputerModernFontConstants.sub2" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">subdrop</code><emclass="property"> = 0.2</em><aclass="headerlink" href="#matplotlib.mathtext.ComputerModernFontConstants.subdrop" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">sup1</code><emclass="property"> = 0.45</em><aclass="headerlink" href="#matplotlib.mathtext.ComputerModernFontConstants.sup1" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
</dd></dl>
<dlclass="class">
<dtid="matplotlib.mathtext.DejaVuFonts">
<emclass="property">class </em><codeclass="descclassname">matplotlib.mathtext.</code><codeclass="descname">DejaVuFonts</code><spanclass="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#DejaVuFonts"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.DejaVuFonts" title="Permalink to this definition">¶</a></dt>
<trclass="field-odd field"><thclass="field-name">Parameters:</th><tdclass="field-body"><dlclass="first last docutils">
<dt><strong>default_font_prop: `~.font_manager.FontProperties`</strong></dt><dd><p>The default non-math font, or the base font for Unicode (generic)
font rendering.</p>
</dd>
<dt><strong>mathtext_backend: `MathtextBackend` subclass</strong></dt><dd><p>Backend to which rendering is actually delegated.</p>
</dd>
</dl>
</td>
</tr>
</tbody>
</table>
<dlclass="attribute">
<dtid="matplotlib.mathtext.DejaVuFonts.use_cmex">
<codeclass="descname">use_cmex</code><emclass="property"> = False</em><aclass="headerlink" href="#matplotlib.mathtext.DejaVuFonts.use_cmex" title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="descclassname">matplotlib.mathtext.</code><codeclass="descname">DejaVuSansFontConstants</code><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#DejaVuSansFontConstants"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.DejaVuSansFontConstants" title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="descclassname">matplotlib.mathtext.</code><codeclass="descname">DejaVuSansFonts</code><spanclass="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#DejaVuSansFonts"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.DejaVuSansFonts" title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="descclassname">matplotlib.mathtext.</code><codeclass="descname">DejaVuSerifFontConstants</code><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#DejaVuSerifFontConstants"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.DejaVuSerifFontConstants" title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="descclassname">matplotlib.mathtext.</code><codeclass="descname">DejaVuSerifFonts</code><spanclass="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#DejaVuSerifFonts"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.DejaVuSerifFonts" title="Permalink to this definition">¶</a></dt>
<trclass="field-odd field"><thclass="field-name">Parameters:</th><tdclass="field-body"><dlclass="first last docutils">
<dt><strong>default_font_prop: `~.font_manager.FontProperties`</strong></dt><dd><p>The default non-math font, or the base font for Unicode (generic)
font rendering.</p>
</dd>
<dt><strong>mathtext_backend: `MathtextBackend` subclass</strong></dt><dd><p>Backend to which rendering is actually delegated.</p>
</dd>
</dl>
</td>
</tr>
</tbody>
</table>
</dd></dl>
<dlclass="function">
<dtid="matplotlib.mathtext.Error">
<codeclass="descclassname">matplotlib.mathtext.</code><codeclass="descname">Error</code><spanclass="sig-paren">(</span><em>msg</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#Error"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.Error" title="Permalink to this definition">¶</a></dt>
<dd><p>Helper class to raise parser errors.</p>
</dd></dl>
<dlclass="class">
<dtid="matplotlib.mathtext.Fil">
<emclass="property">class </em><codeclass="descclassname">matplotlib.mathtext.</code><codeclass="descname">Fil</code><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#Fil"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.Fil" title="Permalink to this definition">¶</a></dt>
<p><spanclass="versionmodified deprecated">Deprecated since version 3.3: </span></p>
</div>
</dd></dl>
<dlclass="class">
<dtid="matplotlib.mathtext.Fill">
<emclass="property">class </em><codeclass="descclassname">matplotlib.mathtext.</code><codeclass="descname">Fill</code><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#Fill"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.Fill" title="Permalink to this definition">¶</a></dt>
<p><spanclass="versionmodified deprecated">Deprecated since version 3.3: </span></p>
</div>
</dd></dl>
<dlclass="class">
<dtid="matplotlib.mathtext.Filll">
<emclass="property">class </em><codeclass="descclassname">matplotlib.mathtext.</code><codeclass="descname">Filll</code><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#Filll"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.Filll" title="Permalink to this definition">¶</a></dt>
<p><spanclass="versionmodified deprecated">Deprecated since version 3.3: </span></p>
</div>
</dd></dl>
<dlclass="class">
<dtid="matplotlib.mathtext.FontConstantsBase">
<emclass="property">class </em><codeclass="descclassname">matplotlib.mathtext.</code><codeclass="descname">FontConstantsBase</code><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#FontConstantsBase"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.FontConstantsBase" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">delta</code><emclass="property"> = 0.025</em><aclass="headerlink" href="#matplotlib.mathtext.FontConstantsBase.delta" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">delta_integral</code><emclass="property"> = 0.1</em><aclass="headerlink" href="#matplotlib.mathtext.FontConstantsBase.delta_integral" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">delta_slanted</code><emclass="property"> = 0.2</em><aclass="headerlink" href="#matplotlib.mathtext.FontConstantsBase.delta_slanted" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">script_space</code><emclass="property"> = 0.05</em><aclass="headerlink" href="#matplotlib.mathtext.FontConstantsBase.script_space" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">sub1</code><emclass="property"> = 0.3</em><aclass="headerlink" href="#matplotlib.mathtext.FontConstantsBase.sub1" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">sub2</code><emclass="property"> = 0.5</em><aclass="headerlink" href="#matplotlib.mathtext.FontConstantsBase.sub2" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">subdrop</code><emclass="property"> = 0.4</em><aclass="headerlink" href="#matplotlib.mathtext.FontConstantsBase.subdrop" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">sup1</code><emclass="property"> = 0.7</em><aclass="headerlink" href="#matplotlib.mathtext.FontConstantsBase.sup1" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
</dd></dl>
<dlclass="class">
<dtid="matplotlib.mathtext.Fonts">
<emclass="property">class </em><codeclass="descclassname">matplotlib.mathtext.</code><codeclass="descname">Fonts</code><spanclass="sig-paren">(</span><em>default_font_prop</em>, <em>mathtext_backend</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#Fonts"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.Fonts" title="Permalink to this definition">¶</a></dt>
<trclass="field-odd field"><thclass="field-name">Parameters:</th><tdclass="field-body"><dlclass="first last docutils">
<dt><strong>default_font_prop: `~.font_manager.FontProperties`</strong></dt><dd><p>The default non-math font, or the base font for Unicode (generic)
font rendering.</p>
</dd>
<dt><strong>mathtext_backend: `MathtextBackend` subclass</strong></dt><dd><p>Backend to which rendering is actually delegated.</p>
</dd>
</dl>
</td>
</tr>
</tbody>
</table>
<dlclass="method">
<dtid="matplotlib.mathtext.Fonts.destroy">
<codeclass="descname">destroy</code><spanclass="sig-paren">(</span><em>self</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#Fonts.destroy"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.Fonts.destroy" title="Permalink to this definition">¶</a></dt>
<dd><p>Fix any cyclical references before the object is about
to be destroyed.</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.mathtext.Fonts.get_kern">
<codeclass="descname">get_kern</code><spanclass="sig-paren">(</span><em>self</em>, <em>font1</em>, <em>fontclass1</em>, <em>sym1</em>, <em>fontsize1</em>, <em>font2</em>, <em>fontclass2</em>, <em>sym2</em>, <em>fontsize2</em>, <em>dpi</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#Fonts.get_kern"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.Fonts.get_kern" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the kerning distance for font between <em>sym1</em> and <em>sym2</em>.</p>
<p><em>sym</em>: a symbol in raw TeX form. e.g., '1', 'x' or 'sigma'</p>
<p><em>fontsize</em>: font size in points</p>
<p><em>dpi</em>: current dots-per-inch</p>
<p><em>math</em>: whether sym is a math character</p>
<p>Returns an object with the following attributes:</p>
<ulclass="simple">
<li><em>advance</em>: The advance distance (in points) of the glyph.</li>
<li><em>height</em>: The height of the glyph in points.</li>
<li><em>width</em>: The width of the glyph in points.</li>
<li><em>xmin</em>, <em>xmax</em>, <em>ymin</em>, <em>ymax</em> - the ink rectangle of the glyph</li>
<li><em>iceberg</em> - the distance from the baseline to the top of
the glyph. This corresponds to TeX's definition of "height".</li>
</ul>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.mathtext.Fonts.get_results">
<codeclass="descname">get_results</code><spanclass="sig-paren">(</span><em>self</em>, <em>box</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#Fonts.get_results"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.Fonts.get_results" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the data needed by the backend to render the math
expression. The return value is backend-specific.</p>
<codeclass="descname">get_sized_alternatives_for_symbol</code><spanclass="sig-paren">(</span><em>self</em>, <em>fontname</em>, <em>sym</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#Fonts.get_sized_alternatives_for_symbol"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.Fonts.get_sized_alternatives_for_symbol" title="Permalink to this definition">¶</a></dt>
<dd><p>Override if your font provides multiple sizes of the same
symbol. Should return a list of symbols matching <em>sym</em> in
various sizes. The expression renderer will select the most
appropriate size for a given situation from this list.</p>
<codeclass="descname">get_used_characters</code><spanclass="sig-paren">(</span><em>self</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#Fonts.get_used_characters"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.Fonts.get_used_characters" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the set of characters that were used in the math
expression. Used by backends that need to subset fonts so
they know which glyphs to include.</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.mathtext.Fonts.get_xheight">
<codeclass="descname">get_xheight</code><spanclass="sig-paren">(</span><em>self</em>, <em>font</em>, <em>fontsize</em>, <em>dpi</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#Fonts.get_xheight"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.Fonts.get_xheight" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the xheight for the given <em>font</em> and <em>fontsize</em>.</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.mathtext.Fonts.render_glyph">
<codeclass="descname">render_glyph</code><spanclass="sig-paren">(</span><em>self</em>, <em>ox</em>, <em>oy</em>, <em>facename</em>, <em>font_class</em>, <em>sym</em>, <em>fontsize</em>, <em>dpi</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#Fonts.render_glyph"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.Fonts.render_glyph" title="Permalink to this definition">¶</a></dt>
<dd><p>Draw a glyph at</p>
<blockquote>
<div><ulclass="simple">
<li><em>ox</em>, <em>oy</em>: position</li>
<li><em>facename</em>: One of the TeX face names</li>
<li><em>font_class</em>:</li>
<li><em>sym</em>: TeX symbol name or single character</li>
<p>Most of the information in this object is stored in the underlying
<codeclass="docutils literal notranslate"><spanclass="pre">_GlueSpec</span></code> class, which is shared between multiple glue objects.
(This is a memory optimization which probably doesn't matter anymore, but
it's easier to stick to what TeX does.)</p>
<dlclass="method">
<dtid="matplotlib.mathtext.Glue.glue_subtype">
<emclass="property">property </em><codeclass="descname">glue_subtype</code><aclass="headerlink" href="#matplotlib.mathtext.Glue.glue_subtype" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="method">
<dtid="matplotlib.mathtext.Glue.grow">
<codeclass="descname">grow</code><spanclass="sig-paren">(</span><em>self</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#Glue.grow"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.Glue.grow" title="Permalink to this definition">¶</a></dt>
<dd><p>Grows one level larger. There is no limit to how big
something can get.</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.mathtext.Glue.shrink">
<codeclass="descname">shrink</code><spanclass="sig-paren">(</span><em>self</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#Glue.shrink"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.Glue.shrink" title="Permalink to this definition">¶</a></dt>
<dd><p>Shrinks one level smaller. There are only three levels of
sizes, after which things will no longer get smaller.</p>
</dd></dl>
</dd></dl>
<dlclass="class">
<dtid="matplotlib.mathtext.GlueSpec">
<emclass="property">class </em><codeclass="descclassname">matplotlib.mathtext.</code><codeclass="descname">GlueSpec</code><spanclass="sig-paren">(</span><em>width=0.0</em>, <em>stretch=0.0</em>, <em>stretch_order=0</em>, <em>shrink=0.0</em>, <em>shrink_order=0</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#GlueSpec"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.GlueSpec" title="Permalink to this definition">¶</a></dt>
<p><spanclass="versionmodified deprecated">Deprecated since version 3.3.</span></p>
</div>
<dlclass="method">
<dtid="matplotlib.mathtext.GlueSpec.copy">
<codeclass="descname">copy</code><spanclass="sig-paren">(</span><em>self</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#GlueSpec.copy"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.GlueSpec.copy" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="method">
<dtid="matplotlib.mathtext.GlueSpec.factory">
<emclass="property">classmethod </em><codeclass="descname">factory</code><spanclass="sig-paren">(</span><em>glue_type</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#GlueSpec.factory"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.GlueSpec.factory" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
</dd></dl>
<dlclass="class">
<dtid="matplotlib.mathtext.HCentered">
<emclass="property">class </em><codeclass="descclassname">matplotlib.mathtext.</code><codeclass="descname">HCentered</code><spanclass="sig-paren">(</span><em>elements</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#HCentered"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.HCentered" title="Permalink to this definition">¶</a></dt>
<p>A convenience class to create an <aclass="reference internal" href="#matplotlib.mathtext.Hlist" title="matplotlib.mathtext.Hlist"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">Hlist</span></code></a> whose contents are
centered within its enclosing box.</p>
</dd></dl>
<dlclass="class">
<dtid="matplotlib.mathtext.Hbox">
<emclass="property">class </em><codeclass="descclassname">matplotlib.mathtext.</code><codeclass="descname">Hbox</code><spanclass="sig-paren">(</span><em>width</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#Hbox"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.Hbox" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">hpack</code><spanclass="sig-paren">(</span><em>self</em>, <em>w=0.0</em>, <em>m='additional'</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#Hlist.hpack"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.Hlist.hpack" title="Permalink to this definition">¶</a></dt>
<dd><p>Compute the dimensions of the resulting boxes, and adjust the glue if
one of those dimensions is pre-specified. The computed sizes normally
enclose all of the material inside the new box; but some items may
stick out if negative glue is used, if the box is overfull, or if a
<codeclass="docutils literal notranslate"><spanclass="pre">\vbox</span></code> includes other boxes that have been shifted left.</p>
<dt><strong>m</strong><spanclass="classifier">{'exactly', 'additional'}, default: 'additional'</span></dt><dd><p>Whether to produce a box whose width is 'exactly' <em>w</em>; or a box
with the natural width of the contents, plus <em>w</em> ('additional').</p>
</dd>
</dl>
</td>
</tr>
</tbody>
</table>
<pclass="rubric">Notes</p>
<p>The defaults produce a box with the natural width of the contents.</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.mathtext.Hlist.kern">
<codeclass="descname">kern</code><spanclass="sig-paren">(</span><em>self</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#Hlist.kern"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.Hlist.kern" title="Permalink to this definition">¶</a></dt>
<dd><p>Insert <aclass="reference internal" href="#matplotlib.mathtext.Kern" title="matplotlib.mathtext.Kern"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">Kern</span></code></a> nodes between <aclass="reference internal" href="#matplotlib.mathtext.Char" title="matplotlib.mathtext.Char"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">Char</span></code></a> nodes to set kerning.</p>
<p>The <aclass="reference internal" href="#matplotlib.mathtext.Char" title="matplotlib.mathtext.Char"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">Char</span></code></a> nodes themselves determine the amount of kerning they need
(in <aclass="reference internal" href="#matplotlib.mathtext.Char.get_kerning" title="matplotlib.mathtext.Char.get_kerning"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">get_kerning</span></code></a>), and this function just creates the correct
linked list.</p>
</dd></dl>
</dd></dl>
<dlclass="class">
<dtid="matplotlib.mathtext.Hrule">
<emclass="property">class </em><codeclass="descclassname">matplotlib.mathtext.</code><codeclass="descname">Hrule</code><spanclass="sig-paren">(</span><em>state</em>, <em>thickness=None</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#Hrule"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.Hrule" title="Permalink to this definition">¶</a></dt>
<p>Convenience class to create a horizontal rule.</p>
</dd></dl>
<dlclass="class">
<dtid="matplotlib.mathtext.Kern">
<emclass="property">class </em><codeclass="descclassname">matplotlib.mathtext.</code><codeclass="descname">Kern</code><spanclass="sig-paren">(</span><em>width</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#Kern"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.Kern" title="Permalink to this definition">¶</a></dt>
<p>A <aclass="reference internal" href="#matplotlib.mathtext.Kern" title="matplotlib.mathtext.Kern"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">Kern</span></code></a> node has a width field to specify a (normally
negative) amount of spacing. This spacing correction appears in
horizontal lists between letters like A and V when the font
designer said that it looks better to move them closer together or
further apart. A kern node can also appear in a vertical list,
when its <em>width</em> denotes additional spacing in the vertical
direction.</p>
<dlclass="attribute">
<dtid="matplotlib.mathtext.Kern.depth">
<codeclass="descname">depth</code><emclass="property"> = 0</em><aclass="headerlink" href="#matplotlib.mathtext.Kern.depth" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="method">
<dtid="matplotlib.mathtext.Kern.grow">
<codeclass="descname">grow</code><spanclass="sig-paren">(</span><em>self</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#Kern.grow"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.Kern.grow" title="Permalink to this definition">¶</a></dt>
<dd><p>Grows one level larger. There is no limit to how big
something can get.</p>
</dd></dl>
<dlclass="attribute">
<dtid="matplotlib.mathtext.Kern.height">
<codeclass="descname">height</code><emclass="property"> = 0</em><aclass="headerlink" href="#matplotlib.mathtext.Kern.height" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="method">
<dtid="matplotlib.mathtext.Kern.shrink">
<codeclass="descname">shrink</code><spanclass="sig-paren">(</span><em>self</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#Kern.shrink"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.Kern.shrink" title="Permalink to this definition">¶</a></dt>
<dd><p>Shrinks one level smaller. There are only three levels of
sizes, after which things will no longer get smaller.</p>
</dd></dl>
</dd></dl>
<dlclass="class">
<dtid="matplotlib.mathtext.List">
<emclass="property">class </em><codeclass="descclassname">matplotlib.mathtext.</code><codeclass="descname">List</code><spanclass="sig-paren">(</span><em>elements</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#List"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.List" title="Permalink to this definition">¶</a></dt>
<p>A list of nodes (either horizontal or vertical).</p>
<dlclass="method">
<dtid="matplotlib.mathtext.List.grow">
<codeclass="descname">grow</code><spanclass="sig-paren">(</span><em>self</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#List.grow"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.List.grow" title="Permalink to this definition">¶</a></dt>
<dd><p>Grows one level larger. There is no limit to how big
something can get.</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.mathtext.List.shrink">
<codeclass="descname">shrink</code><spanclass="sig-paren">(</span><em>self</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#List.shrink"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.List.shrink" title="Permalink to this definition">¶</a></dt>
<dd><p>Shrinks one level smaller. There are only three levels of
sizes, after which things will no longer get smaller.</p>
</dd></dl>
</dd></dl>
<dlclass="class">
<dtid="matplotlib.mathtext.MathTextParser">
<emclass="property">class </em><codeclass="descclassname">matplotlib.mathtext.</code><codeclass="descname">MathTextParser</code><spanclass="sig-paren">(</span><em>output</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#MathTextParser"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.MathTextParser" title="Permalink to this definition">¶</a></dt>
<dt><strong>dpi</strong><spanclass="classifier">float</span></dt><dd><p>The dots-per-inch setting used to render the text.</p>
</dd>
</dl>
</td>
</tr>
<trclass="field-even field"><thclass="field-name">Returns:</th><tdclass="field-body"><dlclass="first last docutils">
<dt>int</dt><dd><p>Offset of the baseline from the bottom of the image, in pixels.</p>
</dd>
</dl>
</td>
</tr>
</tbody>
</table>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.mathtext.MathTextParser.parse">
<codeclass="descname">parse</code><spanclass="sig-paren">(</span><em>self</em>, <em>s</em>, <em>dpi=72</em>, <em>prop=None</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/mathtext.html#MathTextParser.parse"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.mathtext.MathTextParser.parse" title="Permalink to this definition">¶</a></dt>
<dd><p>Parse the given math expression <em>s</em> at the given <em>dpi</em>. If <em>prop</em> is
provided, it is a <aclass="reference internal" href="font_manager_api.html#matplotlib.font_manager.FontProperties" title="matplotlib.font_manager.FontProperties"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">FontProperties</span></code></a> object specifying the "default"
font to use in the math expression, used for all non-math text.</p>
<p>The results are cached, so multiple calls to <aclass="reference internal" href="#matplotlib.mathtext.MathTextParser.parse" title="matplotlib.mathtext.MathTextParser.parse"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">parse</span></code></a>