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.2). For the latest version see <ahref="https://matplotlib.org/stable/api/backend_pdf_api.html">https://matplotlib.org/stable/api/backend_pdf_api.html</a></div>
<codeclass="descclassname">matplotlib.backends.backend_pdf.</code><codeclass="descname">FigureCanvas</code><aclass="headerlink" href="#matplotlib.backends.backend_pdf.FigureCanvas" title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="descclassname">matplotlib.backends.backend_pdf.</code><codeclass="descname">FigureCanvasPdf</code><spanclass="sig-paren">(</span><em><spanclass="n">figure</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#FigureCanvasPdf"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.FigureCanvasPdf" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">fixed_dpi</code><emclass="property"> = 72</em><aclass="headerlink" href="#matplotlib.backends.backend_pdf.FigureCanvasPdf.fixed_dpi" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">get_default_filetype</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#FigureCanvasPdf.get_default_filetype"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.FigureCanvasPdf.get_default_filetype" title="Permalink to this definition">¶</a></dt>
<dd><p>Return the default savefig file format as specified in
<emclass="property">class </em><codeclass="descclassname">matplotlib.backends.backend_pdf.</code><codeclass="descname">GraphicsContextPdf</code><spanclass="sig-paren">(</span><em><spanclass="n">file</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#GraphicsContextPdf"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.GraphicsContextPdf" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">capstyle_cmd</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">style</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#GraphicsContextPdf.capstyle_cmd"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.GraphicsContextPdf.capstyle_cmd" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">clip_cmd</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">cliprect</span></em>, <em><spanclass="n">clippath</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#GraphicsContextPdf.clip_cmd"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.GraphicsContextPdf.clip_cmd" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">copy_properties</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">other</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#GraphicsContextPdf.copy_properties"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.GraphicsContextPdf.copy_properties" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">dash_cmd</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">dashes</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#GraphicsContextPdf.dash_cmd"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.GraphicsContextPdf.dash_cmd" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">delta</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">other</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#GraphicsContextPdf.delta"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.GraphicsContextPdf.delta" title="Permalink to this definition">¶</a></dt>
<dd><p>Copy properties of other into self and return PDF commands
<codeclass="descname">fill</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="o">*</span><spanclass="n">args</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#GraphicsContextPdf.fill"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.GraphicsContextPdf.fill" title="Permalink to this definition">¶</a></dt>
<dd><p>Predicate: does the path need to be filled?</p>
<p>An optional argument can be used to specify an alternative
_fillcolor, as needed by RendererPdf.draw_markers.</p>
<codeclass="descname">fillcolor_cmd</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">rgb</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#GraphicsContextPdf.fillcolor_cmd"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.GraphicsContextPdf.fillcolor_cmd" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">finalize</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#GraphicsContextPdf.finalize"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.GraphicsContextPdf.finalize" title="Permalink to this definition">¶</a></dt>
<dd><p>Make sure every pushed graphics state is popped.</p>
<codeclass="descname">hatch_cmd</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">hatch</span></em>, <em><spanclass="n">hatch_color</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#GraphicsContextPdf.hatch_cmd"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.GraphicsContextPdf.hatch_cmd" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">joinstyle_cmd</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">style</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#GraphicsContextPdf.joinstyle_cmd"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.GraphicsContextPdf.joinstyle_cmd" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">linewidth_cmd</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">width</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#GraphicsContextPdf.linewidth_cmd"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.GraphicsContextPdf.linewidth_cmd" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">paint</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#GraphicsContextPdf.paint"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.GraphicsContextPdf.paint" title="Permalink to this definition">¶</a></dt>
<dd><p>Return the appropriate pdf operator to cause the path to be
<codeclass="descname">pop</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#GraphicsContextPdf.pop"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.GraphicsContextPdf.pop" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">push</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#GraphicsContextPdf.push"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.GraphicsContextPdf.push" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">rgb_cmd</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">rgb</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#GraphicsContextPdf.rgb_cmd"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.GraphicsContextPdf.rgb_cmd" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">stroke</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#GraphicsContextPdf.stroke"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.GraphicsContextPdf.stroke" title="Permalink to this definition">¶</a></dt>
<dd><p>Predicate: does the path need to be stroked (its outline drawn)?
This tests for the various conditions that disable stroking
the path, in which case it would presumably be filled.</p>
</dd></dl>
</dd></dl>
<dlclass="py class">
<dtid="matplotlib.backends.backend_pdf.Name">
<emclass="property">class </em><codeclass="descclassname">matplotlib.backends.backend_pdf.</code><codeclass="descname">Name</code><spanclass="sig-paren">(</span><em><spanclass="n">name</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#Name"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.Name" title="Permalink to this definition">¶</a></dt>
<emclass="property">static </em><codeclass="descname">hexify</code><spanclass="sig-paren">(</span><em><spanclass="n">match</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#Name.hexify"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.Name.hexify" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">name</code><aclass="headerlink" href="#matplotlib.backends.backend_pdf.Name.name" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">pdfRepr</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#Name.pdfRepr"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.Name.pdfRepr" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
</dd></dl>
<dlclass="py class">
<dtid="matplotlib.backends.backend_pdf.Operator">
<emclass="property">class </em><codeclass="descclassname">matplotlib.backends.backend_pdf.</code><codeclass="descname">Operator</code><spanclass="sig-paren">(</span><em><spanclass="n">op</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#Operator"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.Operator" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">op</code><aclass="headerlink" href="#matplotlib.backends.backend_pdf.Operator.op" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">pdfRepr</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#Operator.pdfRepr"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.Operator.pdfRepr" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
</dd></dl>
<dlclass="py class">
<dtid="matplotlib.backends.backend_pdf.PdfFile">
<emclass="property">class </em><codeclass="descclassname">matplotlib.backends.backend_pdf.</code><codeclass="descname">PdfFile</code><spanclass="sig-paren">(</span><em><spanclass="n">filename</span></em>, <em><spanclass="n">metadata</span><spanclass="o">=</span><spanclass="default_value">None</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#PdfFile"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile" 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>filename</strong><spanclass="classifier">str or path-like or file-like</span></dt><dd><p>Output target; if a string, a file will be opened for writing.</p>
</dd>
<dt><strong>metadata</strong><spanclass="classifier">dict from strings to strings and dates</span></dt><dd><p>Information dictionary object (see PDF reference section 10.2.1
<p>The standard keys are 'Title', 'Author', 'Subject', 'Keywords',
'Creator', 'Producer', 'CreationDate', 'ModDate', and
'Trapped'. Values have been predefined for 'Creator', 'Producer'
and 'CreationDate'. They can be removed by setting them to <aclass="reference external" href="https://docs.python.org/3/library/constants.html#None" title="(in Python v3.8)"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">None</span></code></a>.</p>
<codeclass="descname">addGouraudTriangles</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">points</span></em>, <em><spanclass="n">colors</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#PdfFile.addGouraudTriangles"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.addGouraudTriangles" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">alphaState</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">alpha</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#PdfFile.alphaState"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.alphaState" title="Permalink to this definition">¶</a></dt>
<dd><p>Return name of an ExtGState that sets alpha to the given value.</p>
<codeclass="descname">close</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#PdfFile.close"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.close" title="Permalink to this definition">¶</a></dt>
<dd><p>Flush all buffers and free all resources.</p>
<codeclass="descname">createType1Descriptor</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">t1font</span></em>, <em><spanclass="n">fontfile</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#PdfFile.createType1Descriptor"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.createType1Descriptor" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">dviFontName</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">dvifont</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#PdfFile.dviFontName"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.dviFontName" title="Permalink to this definition">¶</a></dt>
<dd><p>Given a dvi font object, return a name suitable for Op.selectfont.
This registers the font information in <codeclass="docutils literal notranslate"><spanclass="pre">self.dviFontInfo</span></code> if not yet
<codeclass="descname">embedTTF</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">filename</span></em>, <em><spanclass="n">characters</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#PdfFile.embedTTF"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.embedTTF" title="Permalink to this definition">¶</a></dt>
<dd><p>Embed the TTF font from the named file into the document.</p>
<codeclass="descname">endStream</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#PdfFile.endStream"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.endStream" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">finalize</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#PdfFile.finalize"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.finalize" title="Permalink to this definition">¶</a></dt>
<dd><p>Write out the various deferred objects and the pdf end matter.</p>
<codeclass="descname">fontName</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">fontprop</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#PdfFile.fontName"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.fontName" title="Permalink to this definition">¶</a></dt>
<dd><p>Select a font based on fontprop and return a name suitable for
Op.selectfont. If fontprop is a string, it will be interpreted
<codeclass="descname">hatchPattern</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">hatch_style</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#PdfFile.hatchPattern"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.hatchPattern" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">imageObject</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">image</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#PdfFile.imageObject"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.imageObject" title="Permalink to this definition">¶</a></dt>
<dd><p>Return name of an image XObject representing the given image.</p>
<codeclass="descname">newPage</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">width</span></em>, <em><spanclass="n">height</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#PdfFile.newPage"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.newPage" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">output</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="o">*</span><spanclass="n">data</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#PdfFile.output"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.output" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">recordXref</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">id</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#PdfFile.recordXref"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.recordXref" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">reserveObject</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">name</span><spanclass="o">=</span><spanclass="default_value">''</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#PdfFile.reserveObject"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.reserveObject" title="Permalink to this definition">¶</a></dt>
<dd><p>Reserve an ID for an indirect object.</p>
<p>The name is used for debugging in case we forget to print out
<emclass="property">property </em><codeclass="descname">used_characters</code><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.used_characters" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">write</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">data</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#PdfFile.write"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.write" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">writeExtGSTates</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#PdfFile.writeExtGSTates"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.writeExtGSTates" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">writeFonts</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#PdfFile.writeFonts"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.writeFonts" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">writeGouraudTriangles</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#PdfFile.writeGouraudTriangles"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.writeGouraudTriangles" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">writeHatches</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#PdfFile.writeHatches"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.writeHatches" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">writeImages</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#PdfFile.writeImages"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.writeImages" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">writeInfoDict</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#PdfFile.writeInfoDict"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.writeInfoDict" title="Permalink to this definition">¶</a></dt>
<dd><p>Write out the info dictionary, checking it for good form</p>
<codeclass="descname">writeMarkers</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#PdfFile.writeMarkers"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.writeMarkers" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">writeObject</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">object</span></em>, <em><spanclass="n">contents</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#PdfFile.writeObject"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.writeObject" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">writePathCollectionTemplates</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#PdfFile.writePathCollectionTemplates"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.writePathCollectionTemplates" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">writeTrailer</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#PdfFile.writeTrailer"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.writeTrailer" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">writeXref</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#PdfFile.writeXref"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.writeXref" title="Permalink to this definition">¶</a></dt>
<dd><p>Write out the xref table.</p>
</dd></dl>
</dd></dl>
<dlclass="py class">
<dtid="matplotlib.backends.backend_pdf.PdfPages">
<emclass="property">class </em><codeclass="descclassname">matplotlib.backends.backend_pdf.</code><codeclass="descname">PdfPages</code><spanclass="sig-paren">(</span><em><spanclass="n">filename</span></em>, <em><spanclass="n">keep_empty</span><spanclass="o">=</span><spanclass="default_value">True</span></em>, <em><spanclass="n">metadata</span><spanclass="o">=</span><spanclass="default_value">None</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#PdfPages"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfPages" title="Permalink to this definition">¶</a></dt>
<p>In reality <aclass="reference internal" href="#matplotlib.backends.backend_pdf.PdfPages" title="matplotlib.backends.backend_pdf.PdfPages"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">PdfPages</span></code></a> is a thin wrapper around <aclass="reference internal" href="#matplotlib.backends.backend_pdf.PdfFile" title="matplotlib.backends.backend_pdf.PdfFile"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">PdfFile</span></code></a>, in order to avoid
confusion when using <aclass="reference internal" href="_as_gen/matplotlib.pyplot.savefig.html#matplotlib.pyplot.savefig" title="matplotlib.pyplot.savefig"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">savefig</span></code></a> and forgetting the format argument.</p>
<trclass="field-odd field"><thclass="field-name">Parameters:</th><tdclass="field-body"><dlclass="first last docutils">
<dt><strong>filename</strong><spanclass="classifier">str or path-like or file-like</span></dt><dd><p>Plots using <aclass="reference internal" href="#matplotlib.backends.backend_pdf.PdfPages.savefig" title="matplotlib.backends.backend_pdf.PdfPages.savefig"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">PdfPages.savefig</span></code></a> will be written to a file at this
location. The file is opened at once and any older file with the
same name is overwritten.</p>
</dd>
<dt><strong>keep_empty</strong><spanclass="classifier">bool, optional</span></dt><dd><p>If set to False, then empty pdf files will be deleted automatically
when closed.</p>
</dd>
<dt><strong>metadata</strong><spanclass="classifier">dict, optional</span></dt><dd><p>Information dictionary object (see PDF reference section 10.2.1
<p>The standard keys are 'Title', 'Author', 'Subject', 'Keywords',
'Creator', 'Producer', 'CreationDate', 'ModDate', and
'Trapped'. Values have been predefined for 'Creator', 'Producer'
and 'CreationDate'. They can be removed by setting them to <aclass="reference external" href="https://docs.python.org/3/library/constants.html#None" title="(in Python v3.8)"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">None</span></code></a>.</p>
<codeclass="descname">close</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#PdfPages.close"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfPages.close" title="Permalink to this definition">¶</a></dt>
<dd><p>Finalize this object, making the underlying file a complete
<codeclass="descname">get_pagecount</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#PdfPages.get_pagecount"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfPages.get_pagecount" title="Permalink to this definition">¶</a></dt>
<dd><p>Return the current number of pages in the multipage pdf file.</p>
<codeclass="descname">infodict</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#PdfPages.infodict"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfPages.infodict" title="Permalink to this definition">¶</a></dt>
<dd><p>Return a modifiable information dictionary object
(see PDF reference section 10.2.1 'Document Information
<codeclass="descname">keep_empty</code><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfPages.keep_empty" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">savefig</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">figure</span><spanclass="o">=</span><spanclass="default_value">None</span></em>, <em><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#PdfPages.savefig"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfPages.savefig" title="Permalink to this definition">¶</a></dt>
<dd><p>Save a <aclass="reference internal" href="_as_gen/matplotlib.figure.Figure.html#matplotlib.figure.Figure" title="matplotlib.figure.Figure"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">Figure</span></code></a> to this file as a new page.</p>
<p>Any other keyword arguments are passed to <aclass="reference internal" href="_as_gen/matplotlib.figure.Figure.html#matplotlib.figure.Figure.savefig" title="matplotlib.figure.Figure.savefig"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">savefig</span></code></a>.</p>
<trclass="field-odd field"><thclass="field-name">Parameters:</th><tdclass="field-body"><dlclass="first last docutils">
<dt><strong>figure</strong><spanclass="classifier"><aclass="reference internal" href="_as_gen/matplotlib.figure.Figure.html#matplotlib.figure.Figure" title="matplotlib.figure.Figure"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">Figure</span></code></a> or int, optional</span></dt><dd><p>Specifies what figure is saved to file. If not specified, the
active figure is saved. If a <aclass="reference internal" href="_as_gen/matplotlib.figure.Figure.html#matplotlib.figure.Figure" title="matplotlib.figure.Figure"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">Figure</span></code></a> instance is provided, this
figure is saved. If an int is specified, the figure instance to
<emclass="property">class </em><codeclass="descclassname">matplotlib.backends.backend_pdf.</code><codeclass="descname">Reference</code><spanclass="sig-paren">(</span><em><spanclass="n">id</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#Reference"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.Reference" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">pdfRepr</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#Reference.pdfRepr"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.Reference.pdfRepr" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">write</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">contents</span></em>, <em><spanclass="n">file</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#Reference.write"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.Reference.write" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">check_gc</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">gc</span></em>, <em><spanclass="n">fillcolor</span><spanclass="o">=</span><spanclass="default_value">None</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#RendererPdf.check_gc"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.RendererPdf.check_gc" 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>points</strong><spanclass="classifier">array-like, shape=(N, 3, 2)</span></dt><dd><p>Array of <em>N</em> (x, y) points for the triangles.</p>
</dd>
<dt><strong>colors</strong><spanclass="classifier">array-like, shape=(N, 3, 4)</span></dt><dd><p>Array of <em>N</em> RGBA colors for each point of the triangles.</p>
</dd>
<dt><strong>transform</strong><spanclass="classifier"><aclass="reference internal" href="transformations.html#matplotlib.transforms.Transform" title="matplotlib.transforms.Transform"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">matplotlib.transforms.Transform</span></code></a></span></dt><dd><p>An affine transform to apply to the points.</p>
<dt><strong>x</strong><spanclass="classifier">scalar</span></dt><dd><p>The distance in physical units (i.e., dots or pixels) from the left
hand side of the canvas.</p>
</dd>
<dt><strong>y</strong><spanclass="classifier">scalar</span></dt><dd><p>The distance in physical units (i.e., dots or pixels) from the
bottom side of the canvas.</p>
</dd>
<dt><strong>im</strong><spanclass="classifier">array-like, shape=(N, M, 4), dtype=np.uint8</span></dt><dd><p>An array of RGBA pixels.</p>
</dd>
<dt><strong>transform</strong><spanclass="classifier"><aclass="reference internal" href="transformations.html#matplotlib.transforms.Affine2DBase" title="matplotlib.transforms.Affine2DBase"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">matplotlib.transforms.Affine2DBase</span></code></a></span></dt><dd><p>If and only if the concrete backend is written such that
transformation (i.e., an <aclass="reference internal" href="transformations.html#matplotlib.transforms.Affine2DBase" title="matplotlib.transforms.Affine2DBase"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">Affine2DBase</span></code></a>) <em>may</em> be passed to
<aclass="reference internal" href="#matplotlib.backends.backend_pdf.RendererPdf.draw_image" title="matplotlib.backends.backend_pdf.RendererPdf.draw_image"><codeclass="xref py py-meth docutils literal notranslate"><spanclass="pre">draw_image()</span></code></a>. The translation vector of the transformation
is given in physical units (i.e., dots or pixels). Note that
the transformation does not override <em>x</em> and <em>y</em>, and has to be
applied <em>before</em> translating the result by <em>x</em> and <em>y</em> (this can
be accomplished by adding <em>x</em> and <em>y</em> to the translation vector
<codeclass="descname">draw_markers</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">gc</span></em>, <em><spanclass="n">marker_path</span></em>, <em><spanclass="n">marker_trans</span></em>, <em><spanclass="n">path</span></em>, <em><spanclass="n">trans</span></em>, <em><spanclass="n">rgbFace</span><spanclass="o">=</span><spanclass="default_value">None</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#RendererPdf.draw_markers"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.RendererPdf.draw_markers" title="Permalink to this definition">¶</a></dt>
<dd><p>Draw a marker at each of the vertices in path.</p>
<p>This includes all vertices, including control points on curves.
To avoid that behavior, those vertices should be removed before
calling this function.</p>
<p>This provides a fallback implementation of draw_markers that
makes multiple calls to <aclass="reference internal" href="#matplotlib.backends.backend_pdf.RendererPdf.draw_path" title="matplotlib.backends.backend_pdf.RendererPdf.draw_path"><codeclass="xref py py-meth docutils literal notranslate"><spanclass="pre">draw_path()</span></code></a>. Some backends may
want to override this method in order to draw the marker only
<codeclass="descname">draw_path</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">gc</span></em>, <em><spanclass="n">path</span></em>, <em><spanclass="n">transform</span></em>, <em><spanclass="n">rgbFace</span><spanclass="o">=</span><spanclass="default_value">None</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#RendererPdf.draw_path"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.RendererPdf.draw_path" title="Permalink to this definition">¶</a></dt>
<dd><p>Draw a <aclass="reference internal" href="path_api.html#matplotlib.path.Path" title="matplotlib.path.Path"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">Path</span></code></a> instance using the given affine transform.</p>
<dd><p>Draw a collection of paths selecting drawing properties from
the lists <em>facecolors</em>, <em>edgecolors</em>, <em>linewidths</em>,
<em>linestyles</em> and <em>antialiaseds</em>. <em>offsets</em> is a list of
offsets to apply to each of the paths. The offsets in
<em>offsets</em> are first transformed by <em>offsetTrans</em> before being
applied.</p>
<p><em>offset_position</em> may be either "screen" or "data" depending on the
space that the offsets are in; "data" is deprecated.</p>
<p>This provides a fallback implementation of
<aclass="reference internal" href="#matplotlib.backends.backend_pdf.RendererPdf.draw_path_collection" title="matplotlib.backends.backend_pdf.RendererPdf.draw_path_collection"><codeclass="xref py py-meth docutils literal notranslate"><spanclass="pre">draw_path_collection()</span></code></a> that makes multiple calls to
<aclass="reference internal" href="#matplotlib.backends.backend_pdf.RendererPdf.draw_path" title="matplotlib.backends.backend_pdf.RendererPdf.draw_path"><codeclass="xref py py-meth docutils literal notranslate"><spanclass="pre">draw_path()</span></code></a>. Some backends may want to override this in
order to render each set of path data only once, and then
reference that path multiple times with the different offsets,
colors, styles etc. The generator methods
<codeclass="xref py py-meth docutils literal notranslate"><spanclass="pre">_iter_collection_raw_paths()</span></code> and
<codeclass="xref py py-meth docutils literal notranslate"><spanclass="pre">_iter_collection()</span></code> are provided to help with (and
standardize) the implementation across backends. It is highly
recommended to use those generators, so that changes to the
behavior of <aclass="reference internal" href="#matplotlib.backends.backend_pdf.RendererPdf.draw_path_collection" title="matplotlib.backends.backend_pdf.RendererPdf.draw_path_collection"><codeclass="xref py py-meth docutils literal notranslate"><spanclass="pre">draw_path_collection()</span></code></a> can be made globally.</p>
<dt><strong>angle</strong><spanclass="classifier">float</span></dt><dd><p>The rotation angle in degrees anti-clockwise.</p>
</dd>
<dt><strong>mtext</strong><spanclass="classifier"><aclass="reference internal" href="text_api.html#matplotlib.text.Text" title="matplotlib.text.Text"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">matplotlib.text.Text</span></code></a></span></dt><dd><p>The original text object to be rendered.</p>
</dd>
</dl>
</td>
</tr>
</tbody>
</table>
<pclass="rubric">Notes</p>
<p><strong>Note for backend implementers:</strong></p>
<p>When you are trying to determine if you have gotten your bounding box
right (which is what enables the text layout/alignment to work
properly), it helps to change the line in text.py:</p>
<codeclass="descname">encode_string</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">s</span></em>, <em><spanclass="n">fonttype</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#RendererPdf.encode_string"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.RendererPdf.encode_string" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">finalize</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#RendererPdf.finalize"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.RendererPdf.finalize" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">get_image_magnification</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#RendererPdf.get_image_magnification"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.RendererPdf.get_image_magnification" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the factor by which to magnify images passed to <aclass="reference internal" href="#matplotlib.backends.backend_pdf.RendererPdf.draw_image" title="matplotlib.backends.backend_pdf.RendererPdf.draw_image"><codeclass="xref py py-meth docutils literal notranslate"><spanclass="pre">draw_image()</span></code></a>.
Allows a backend to have images at a different resolution to other
<codeclass="descname">merge_used_characters</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="o">*</span><spanclass="n">args</span></em>, <em><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#RendererPdf.merge_used_characters"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.RendererPdf.merge_used_characters" title="Permalink to this definition">¶</a></dt>
<dd><p>[<em>Deprecated</em>]</p>
<pclass="rubric">Notes</p>
<divclass="deprecated">
<p><spanclass="versionmodified deprecated">Deprecated since version 3.3: </span></p>
<codeclass="descname">new_gc</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#RendererPdf.new_gc"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.RendererPdf.new_gc" title="Permalink to this definition">¶</a></dt>
<dd><p>Return an instance of a <aclass="reference internal" href="backend_bases_api.html#matplotlib.backend_bases.GraphicsContextBase" title="matplotlib.backend_bases.GraphicsContextBase"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">GraphicsContextBase</span></code></a>.</p>
<codeclass="descname">track_characters</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="o">*</span><spanclass="n">args</span></em>, <em><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#RendererPdf.track_characters"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.RendererPdf.track_characters" title="Permalink to this definition">¶</a></dt>
<dd><p>[<em>Deprecated</em>] Keep track of which characters are required from each font.</p>
<pclass="rubric">Notes</p>
<divclass="deprecated">
<p><spanclass="versionmodified deprecated">Deprecated since version 3.3.</span></p>
</div>
</dd></dl>
</dd></dl>
<dlclass="py class">
<dtid="matplotlib.backends.backend_pdf.Stream">
<emclass="property">class </em><codeclass="descclassname">matplotlib.backends.backend_pdf.</code><codeclass="descname">Stream</code><spanclass="sig-paren">(</span><em><spanclass="n">id</span></em>, <em><spanclass="n">len</span></em>, <em><spanclass="n">file</span></em>, <em><spanclass="n">extra</span><spanclass="o">=</span><spanclass="default_value">None</span></em>, <em><spanclass="n">png</span><spanclass="o">=</span><spanclass="default_value">None</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#Stream"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.Stream" 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>id</strong><spanclass="classifier">int</span></dt><dd><p>Object id of the stream.</p>
</dd>
<dt><strong>len</strong><spanclass="classifier">Reference or None</span></dt><dd><p>An unused Reference object for the length of the stream;
None means to use a memory buffer so the length can be inlined.</p>
</dd>
<dt><strong>file</strong><spanclass="classifier">PdfFile</span></dt><dd><p>The underlying object to write the stream to.</p>
</dd>
<dt><strong>extra</strong><spanclass="classifier">dict from Name to anything, or None</span></dt><dd><p>Extra key-value pairs to include in the stream header.</p>
</dd>
<dt><strong>png</strong><spanclass="classifier">dict or None</span></dt><dd><p>If the data is already png encoded, the decode parameters.</p>
<codeclass="descname">compressobj</code><aclass="headerlink" href="#matplotlib.backends.backend_pdf.Stream.compressobj" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">end</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_pdf.html#Stream.end"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_pdf.Stream.end" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">extra</code><aclass="headerlink" href="#matplotlib.backends.backend_pdf.Stream.extra" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">file</code><aclass="headerlink" href="#matplotlib.backends.backend_pdf.Stream.file" title="Permalink to this definition">¶</a></dt>