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 (v2.1.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>
<dd><p>alias of <aclass="reference internal" href="#matplotlib.backends.backend_pdf.FigureCanvasPdf" title="matplotlib.backends.backend_pdf.FigureCanvasPdf"><codeclass="xref py py-class docutils literal"><spanclass="pre">matplotlib.backends.backend_pdf.FigureCanvasPdf</span></code></a></p>
<emclass="property">class </em><codeclass="descclassname">matplotlib.backends.backend_pdf.</code><codeclass="descname">FigureCanvasPdf</code><spanclass="sig-paren">(</span><em>figure</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.FigureCanvasPdf" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">draw</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.FigureCanvasPdf.draw" 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><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.FigureCanvasPdf.get_default_filetype" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">print_pdf</code><spanclass="sig-paren">(</span><em>filename</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.FigureCanvasPdf.print_pdf" title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">matplotlib.backends.backend_pdf.</code><codeclass="descname">FigureManager</code><aclass="headerlink" href="#matplotlib.backends.backend_pdf.FigureManager" title="Permalink to this definition">¶</a></dt>
<dd><p>alias of <aclass="reference internal" href="#matplotlib.backends.backend_pdf.FigureManagerPdf" title="matplotlib.backends.backend_pdf.FigureManagerPdf"><codeclass="xref py py-class docutils literal"><spanclass="pre">matplotlib.backends.backend_pdf.FigureManagerPdf</span></code></a></p>
<emclass="property">class </em><codeclass="descclassname">matplotlib.backends.backend_pdf.</code><codeclass="descname">FigureManagerPdf</code><spanclass="sig-paren">(</span><em>canvas</em>, <em>num</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.FigureManagerPdf" title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="descclassname">matplotlib.backends.backend_pdf.</code><codeclass="descname">GraphicsContextPdf</code><spanclass="sig-paren">(</span><em>file</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.GraphicsContextPdf" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">alpha_cmd</code><spanclass="sig-paren">(</span><em>alpha</em>, <em>forced</em>, <em>effective_alphas</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.GraphicsContextPdf.alpha_cmd" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">capstyle_cmd</code><spanclass="sig-paren">(</span><em>style</em><spanclass="sig-paren">)</span><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>cliprect</em>, <em>clippath</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.GraphicsContextPdf.clip_cmd" title="Permalink to this definition">¶</a></dt>
<dd><p>Set clip rectangle. Calls self.pop() and self.push().</p>
<codeclass="descname">copy_properties</code><spanclass="sig-paren">(</span><em>other</em><spanclass="sig-paren">)</span><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>dashes</em><spanclass="sig-paren">)</span><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>other</em><spanclass="sig-paren">)</span><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>*args</em><spanclass="sig-paren">)</span><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>rgb</em><spanclass="sig-paren">)</span><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><spanclass="sig-paren">)</span><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>hatch</em>, <em>hatch_color</em><spanclass="sig-paren">)</span><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>style</em><spanclass="sig-paren">)</span><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>width</em><spanclass="sig-paren">)</span><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><spanclass="sig-paren">)</span><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><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.GraphicsContextPdf.pop" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">push</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><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>rgb</em><spanclass="sig-paren">)</span><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><spanclass="sig-paren">)</span><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="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>name</em><spanclass="sig-paren">)</span><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>match</em><spanclass="sig-paren">)</span><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><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.Name.pdfRepr" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
</dd></dl>
<dlclass="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>op</em><spanclass="sig-paren">)</span><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><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.Operator.pdfRepr" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
</dd></dl>
<dlclass="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>filename</em>, <em>metadata=None</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">addGouraudTriangles</code><spanclass="sig-paren">(</span><em>points</em>, <em>colors</em><spanclass="sig-paren">)</span><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>alpha</em><spanclass="sig-paren">)</span><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">beginStream</code><spanclass="sig-paren">(</span><em>id</em>, <em>len</em>, <em>extra=None</em>, <em>png=None</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.beginStream" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">close</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><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>t1font</em>, <em>fontfile</em><spanclass="sig-paren">)</span><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>dvifont</em><spanclass="sig-paren">)</span><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 self.dviFontInfo if not yet
<codeclass="descname">embedTTF</code><spanclass="sig-paren">(</span><em>filename</em>, <em>characters</em><spanclass="sig-paren">)</span><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><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.endStream" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">finalize</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><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>fontprop</em><spanclass="sig-paren">)</span><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>hatch_style</em><spanclass="sig-paren">)</span><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>image</em><spanclass="sig-paren">)</span><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>width</em>, <em>height</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.newPage" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">newTextnote</code><spanclass="sig-paren">(</span><em>text, positionRect=[-100, -100, 0, 0]</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.newTextnote" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">output</code><spanclass="sig-paren">(</span><em>*data</em><spanclass="sig-paren">)</span><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>id</em><spanclass="sig-paren">)</span><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>name=''</em><spanclass="sig-paren">)</span><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.
The name is used for debugging in case we forget to print out
<codeclass="descname">texFontMap</code><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.texFontMap" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">write</code><spanclass="sig-paren">(</span><em>data</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.write" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">writeFonts</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.writeFonts" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">writeGouraudTriangles</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.writeGouraudTriangles" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">writeHatches</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.writeHatches" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">writeImages</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.writeImages" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">writeInfoDict</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><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><spanclass="sig-paren">)</span><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>object</em>, <em>contents</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.writeObject" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">writePath</code><spanclass="sig-paren">(</span><em>path</em>, <em>transform</em>, <em>clip=False</em>, <em>sketch=None</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.writePath" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">writePathCollectionTemplates</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.writePathCollectionTemplates" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">writeTrailer</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.writeTrailer" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">writeXref</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><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="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>filename</em>, <em>keep_empty=True</em>, <em>metadata=None</em><spanclass="sig-paren">)</span><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-class docutils literal"><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-class docutils literal"><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-func docutils literal"><spanclass="pre">savefig()</span></code></a> and
<div><p>Plots using <aclass="reference internal" href="#matplotlib.backends.backend_pdf.PdfPages.savefig" title="matplotlib.backends.backend_pdf.PdfPages.savefig"><codeclass="xref py py-meth docutils literal"><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
<codeclass="xref py py-obj docutils literal"><spanclass="pre">'ModDate'</span></code>, and <codeclass="xref py py-obj docutils literal"><spanclass="pre">'Trapped'</span></code>. Values have been predefined
for <codeclass="xref py py-obj docutils literal"><spanclass="pre">'Creator'</span></code>, <codeclass="xref py py-obj docutils literal"><spanclass="pre">'Producer'</span></code> and <codeclass="xref py py-obj docutils literal"><spanclass="pre">'CreationDate'</span></code>. 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.6)"><codeclass="xref py py-obj docutils literal"><spanclass="pre">None</span></code></a>.</p>
<codeclass="descname">attach_note</code><spanclass="sig-paren">(</span><em>text, positionRect=[-100, -100, 0, 0]</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfPages.attach_note" title="Permalink to this definition">¶</a></dt>
<dd><p>Add a new text note to the page to be saved next. The optional
positionRect specifies the position of the new note on the
page. It is outside the page per default to make sure it is
<codeclass="descname">close</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><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><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfPages.get_pagecount" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the current number of pages in the multipage pdf file.</p>
<codeclass="descname">infodict</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><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>figure=None</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfPages.savefig" title="Permalink to this definition">¶</a></dt>
<dd><p>Saves a <aclass="reference internal" href="_as_gen/matplotlib.figure.Figure.html#matplotlib.figure.Figure" title="matplotlib.figure.Figure"><codeclass="xref py py-class docutils literal"><spanclass="pre">Figure</span></code></a> to this file as a new page.</p>
<div><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-class docutils literal"><spanclass="pre">Figure</span></code></a>
instance is provided, this figure is saved. If an int is specified,
the figure instance to save is looked up by number.</p>
<emclass="property">class </em><codeclass="descclassname">matplotlib.backends.backend_pdf.</code><codeclass="descname">Reference</code><spanclass="sig-paren">(</span><em>id</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.Reference" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">pdfRepr</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><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>contents</em>, <em>file</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.Reference.write" title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="descclassname">matplotlib.backends.backend_pdf.</code><codeclass="descname">RendererPdf</code><spanclass="sig-paren">(</span><em>file</em>, <em>image_dpi</em>, <em>height</em>, <em>width</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.RendererPdf" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">afm_font_cache</code><emclass="property"> = {}</em><aclass="headerlink" href="#matplotlib.backends.backend_pdf.RendererPdf.afm_font_cache" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">check_gc</code><spanclass="sig-paren">(</span><em>gc</em>, <em>fillcolor=None</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.RendererPdf.check_gc" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">draw_gouraud_triangle</code><spanclass="sig-paren">(</span><em>gc</em>, <em>points</em>, <em>colors</em>, <em>trans</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.RendererPdf.draw_gouraud_triangle" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">draw_gouraud_triangles</code><spanclass="sig-paren">(</span><em>gc</em>, <em>points</em>, <em>colors</em>, <em>trans</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.RendererPdf.draw_gouraud_triangles" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">draw_image</code><spanclass="sig-paren">(</span><em>gc</em>, <em>x</em>, <em>y</em>, <em>im</em>, <em>transform=None</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.RendererPdf.draw_image" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">draw_path</code><spanclass="sig-paren">(</span><em>gc</em>, <em>path</em>, <em>transform</em>, <em>rgbFace=None</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.RendererPdf.draw_path" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">encode_string</code><spanclass="sig-paren">(</span><em>s</em>, <em>fonttype</em><spanclass="sig-paren">)</span><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><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.RendererPdf.finalize" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">flipy</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.RendererPdf.flipy" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">get_canvas_width_height</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.RendererPdf.get_canvas_width_height" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">get_image_magnification</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.RendererPdf.get_image_magnification" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">get_text_width_height_descent</code><spanclass="sig-paren">(</span><em>s</em>, <em>prop</em>, <em>ismath</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.RendererPdf.get_text_width_height_descent" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">merge_used_characters</code><spanclass="sig-paren">(</span><em>other</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.RendererPdf.merge_used_characters" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">new_gc</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.RendererPdf.new_gc" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">option_image_nocomposite</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.RendererPdf.option_image_nocomposite" title="Permalink to this definition">¶</a></dt>
<dd><p>return whether to generate a composite image from multiple images on
<codeclass="descname">option_scale_image</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.RendererPdf.option_scale_image" title="Permalink to this definition">¶</a></dt>
<dd><p>pdf backend support arbitrary scaling of image.</p>
<codeclass="descname">track_characters</code><spanclass="sig-paren">(</span><em>font</em>, <em>s</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.RendererPdf.track_characters" title="Permalink to this definition">¶</a></dt>
<dd><p>Keeps track of which characters are required from
each font.</p>
</dd></dl>
</dd></dl>
<dlclass="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>id</em>, <em>len</em>, <em>file</em>, <em>extra=None</em>, <em>png=None</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.Stream" title="Permalink to this definition">¶</a></dt>
<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><spanclass="sig-paren">)</span><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>
<codeclass="descname">len</code><aclass="headerlink" href="#matplotlib.backends.backend_pdf.Stream.len" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">pdfFile</code><aclass="headerlink" href="#matplotlib.backends.backend_pdf.Stream.pdfFile" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">pos</code><aclass="headerlink" href="#matplotlib.backends.backend_pdf.Stream.pos" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">write</code><spanclass="sig-paren">(</span><em>data</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.Stream.write" title="Permalink to this definition">¶</a></dt>
<dd><p>Write some data on the stream.</p>
</dd></dl>
</dd></dl>
<dlclass="class">
<dtid="matplotlib.backends.backend_pdf.Verbatim">
<emclass="property">class </em><codeclass="descclassname">matplotlib.backends.backend_pdf.</code><codeclass="descname">Verbatim</code><spanclass="sig-paren">(</span><em>x</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.Verbatim" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">pdfRepr</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.Verbatim.pdfRepr" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
</dd></dl>
<dlclass="function">
<dtid="matplotlib.backends.backend_pdf.fill">
<codeclass="descclassname">matplotlib.backends.backend_pdf.</code><codeclass="descname">fill</code><spanclass="sig-paren">(</span><em>strings</em>, <em>linelen=75</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.fill" title="Permalink to this definition">¶</a></dt>
<dd><p>Make one string from sequence of strings, with whitespace
in between. The whitespace is chosen to form lines of at most
linelen characters, if possible.</p>
</dd></dl>
<dlclass="function">
<dtid="matplotlib.backends.backend_pdf.pdfRepr">
<codeclass="descclassname">matplotlib.backends.backend_pdf.</code><codeclass="descname">pdfRepr</code><spanclass="sig-paren">(</span><em>obj</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.pdfRepr" title="Permalink to this definition">¶</a></dt>