<divid="unreleased-message"> You are reading an old version of the documentation (v2.2.2). For the latest version see <ahref="https://matplotlib.org/stable/api/dviread.html">https://matplotlib.org/stable/api/dviread.html</a></div>
<emclass="property">class </em><codeclass="descclassname">matplotlib.dviread.</code><codeclass="descname">Dvi</code><spanclass="sig-paren">(</span><em>filename</em>, <em>dpi</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/dviread.html#Dvi"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.dviread.Dvi" title="Permalink to this definition">¶</a></dt>
<p>Read the data from the file named <em>filename</em> and convert
TeX’s internal units to units of <em>dpi</em> per inch.
<em>dpi</em> only sets the units and does not limit the resolution.
Use None to return TeX’s internal units.</p>
<dlclass="method">
<dtid="matplotlib.dviread.Dvi.close">
<codeclass="descname">close</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/dviread.html#Dvi.close"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.dviread.Dvi.close" title="Permalink to this definition">¶</a></dt>
<dd><p>Close the underlying file if it is open.</p>
</dd></dl>
</dd></dl>
<dlclass="class">
<dtid="matplotlib.dviread.DviFont">
<emclass="property">class </em><codeclass="descclassname">matplotlib.dviread.</code><codeclass="descname">DviFont</code><spanclass="sig-paren">(</span><em>scale</em>, <em>tfm</em>, <em>texname</em>, <em>vf</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/dviread.html#DviFont"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.dviread.DviFont" title="Permalink to this definition">¶</a></dt>
<dd><pclass="first last">Widths of glyphs in glyph-space units, typically 1/1000ths of
the point size.</p>
</dd>
</dl>
</td>
</tr>
</tbody>
</table>
<dlclass="attribute">
<dtid="matplotlib.dviread.DviFont.size">
<codeclass="descname">size</code><aclass="headerlink" href="#matplotlib.dviread.DviFont.size" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="attribute">
<dtid="matplotlib.dviread.DviFont.texname">
<codeclass="descname">texname</code><aclass="headerlink" href="#matplotlib.dviread.DviFont.texname" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="attribute">
<dtid="matplotlib.dviread.DviFont.widths">
<codeclass="descname">widths</code><aclass="headerlink" href="#matplotlib.dviread.DviFont.widths" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
</dd></dl>
<dlclass="class">
<dtid="matplotlib.dviread.Encoding">
<emclass="property">class </em><codeclass="descclassname">matplotlib.dviread.</code><codeclass="descname">Encoding</code><spanclass="sig-paren">(</span><em>filename</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/dviread.html#Encoding"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.dviread.Encoding" title="Permalink to this definition">¶</a></dt>
<dd><pclass="first last">List of character names</p>
</dd>
</dl>
</td>
</tr>
</tbody>
</table>
<dlclass="attribute">
<dtid="matplotlib.dviread.Encoding.encoding">
<codeclass="descname">encoding</code><aclass="headerlink" href="#matplotlib.dviread.Encoding.encoding" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
</dd></dl>
<dlclass="attribute">
<dtid="matplotlib.dviread.PsFont">
<codeclass="descclassname">matplotlib.dviread.</code><codeclass="descname">PsFont</code><aclass="headerlink" href="#matplotlib.dviread.PsFont" title="Permalink to this definition">¶</a></dt>
<dd><p>alias of <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">matplotlib.dviread.Font</span></code></p>
</dd></dl>
<dlclass="class">
<dtid="matplotlib.dviread.PsfontsMap">
<emclass="property">class </em><codeclass="descclassname">matplotlib.dviread.</code><codeclass="descname">PsfontsMap</code><spanclass="sig-paren">(</span><em>filename</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/dviread.html#PsfontsMap"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.dviread.PsfontsMap" title="Permalink to this definition">¶</a></dt>
The file <codeclass="file docutils literal notranslate"><spanclass="pre">psfonts.map</span></code> is used by <strongclass="program">dvips</strong>,
<codeclass="file docutils literal notranslate"><spanclass="pre">pdftex.map</span></code> by <strongclass="program">pdfTeX</strong>, and <codeclass="file docutils literal notranslate"><spanclass="pre">dvipdfm.map</span></code>
by <strongclass="program">dvipdfm</strong>. <codeclass="file docutils literal notranslate"><spanclass="pre">psfonts.map</span></code> might avoid embedding
the 35 PostScript fonts (i.e., have no filename for them, as in
the Times-Bold example above), while the pdf-related files perhaps
only avoid the “Base 14” pdf fonts. But the user may have
configured these files differently.</p>
</dd></dl>
<dlclass="class">
<dtid="matplotlib.dviread.Tfm">
<emclass="property">class </em><codeclass="descclassname">matplotlib.dviread.</code><codeclass="descname">Tfm</code><spanclass="sig-paren">(</span><em>filename</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/dviread.html#Tfm"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.dviread.Tfm" title="Permalink to this definition">¶</a></dt>
<dd><pclass="first last">Dimensions of each character, need to be scaled by the factor
specified in the dvi file. These are dicts because indexing may
not start from 0.</p>
</dd>
</dl>
</td>
</tr>
</tbody>
</table>
<dlclass="attribute">
<dtid="matplotlib.dviread.Tfm.checksum">
<codeclass="descname">checksum</code><aclass="headerlink" href="#matplotlib.dviread.Tfm.checksum" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="attribute">
<dtid="matplotlib.dviread.Tfm.depth">
<codeclass="descname">depth</code><aclass="headerlink" href="#matplotlib.dviread.Tfm.depth" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="attribute">
<dtid="matplotlib.dviread.Tfm.design_size">
<codeclass="descname">design_size</code><aclass="headerlink" href="#matplotlib.dviread.Tfm.design_size" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="attribute">
<dtid="matplotlib.dviread.Tfm.height">
<codeclass="descname">height</code><aclass="headerlink" href="#matplotlib.dviread.Tfm.height" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="attribute">
<dtid="matplotlib.dviread.Tfm.width">
<codeclass="descname">width</code><aclass="headerlink" href="#matplotlib.dviread.Tfm.width" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
</dd></dl>
<dlclass="class">
<dtid="matplotlib.dviread.Vf">
<emclass="property">class </em><codeclass="descclassname">matplotlib.dviread.</code><codeclass="descname">Vf</code><spanclass="sig-paren">(</span><em>filename</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/dviread.html#Vf"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.dviread.Vf" title="Permalink to this definition">¶</a></dt>
This class reuses some of the machinery of <aclass="reference internal" href="#matplotlib.dviread.Dvi" title="matplotlib.dviread.Dvi"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">Dvi</span></code></a>
but replaces the <codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">_read</span></code> loop and dispatch mechanism.</p>
</dd></dl>
<dlclass="function">
<dtid="matplotlib.dviread.find_tex_file">
<codeclass="descclassname">matplotlib.dviread.</code><codeclass="descname">find_tex_file</code><spanclass="sig-paren">(</span><em>filename</em>, <em>format=None</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/dviread.html#find_tex_file"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.dviread.find_tex_file" title="Permalink to this definition">¶</a></dt>
<dd><p>Find a file in the texmf tree.</p>
<p>Calls <strongclass="program">kpsewhich</strong> which is an interface to the kpathsea
library <aclass="reference internal" href="#ra043a4f19cd5-1" id="id1">[1]</a>. Most existing TeX distributions on Unix-like systems use
kpathsea. It is also available as part of MikTeX, a popular
<trclass="field-odd field"><thclass="field-name">Parameters:</th><tdclass="field-body"><dlclass="first last docutils">
<dt><strong>filename</strong><spanclass="classifier-delimiter">:</span><spanclass="classifier">string or bytestring</span></dt>
<dd></dd>
<dt><strong>format</strong><spanclass="classifier-delimiter">:</span><spanclass="classifier">string or bytestring</span></dt>
<dd><pclass="first last">Used as the value of the <codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">--format</span></code> option to <strongclass="program">kpsewhich</strong>.
Could be e.g. ‘tfm’ or ‘vf’ to limit the search to that type of files.</p>
The library that <strongclass="program">kpsewhich</strong> is part of.</td></tr>
</tbody>
</table>
</dd></dl>
<dlclass="function">
<dtid="matplotlib.dviread.ord">
<codeclass="descclassname">matplotlib.dviread.</code><codeclass="descname">ord</code><spanclass="sig-paren">(</span><em>x</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/dviread.html#ord"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.dviread.ord" title="Permalink to this definition">¶</a></dt>