<divid="unreleased-message"> You are reading an old version of the documentation (v1.3.0). 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>
<emclass="property">class </em><ttclass="descclassname">matplotlib.backends.backend_pdf.</tt><ttclass="descname">FigureCanvasPdf</tt><big>(</big><em>figure</em><big>)</big><aclass="headerlink" href="#matplotlib.backends.backend_pdf.FigureCanvasPdf" title="Permalink to this definition">¶</a></dt>
<p>The canvas the figure renders into. Calls the draw and print fig
methods, creates the renderers, etc...</p>
<p>Public attribute</p>
<blockquote>
<div>figure - A Figure instance</div></blockquote>
</dd></dl>
<dlclass="class">
<dtid="matplotlib.backends.backend_pdf.Name">
<emclass="property">class </em><ttclass="descclassname">matplotlib.backends.backend_pdf.</tt><ttclass="descname">Name</tt><big>(</big><em>name</em><big>)</big><aclass="headerlink" href="#matplotlib.backends.backend_pdf.Name" title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><ttclass="descclassname">matplotlib.backends.backend_pdf.</tt><ttclass="descname">Operator</tt><big>(</big><em>op</em><big>)</big><aclass="headerlink" href="#matplotlib.backends.backend_pdf.Operator" title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><ttclass="descclassname">matplotlib.backends.backend_pdf.</tt><ttclass="descname">PdfFile</tt><big>(</big><em>filename</em><big>)</big><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile" title="Permalink to this definition">¶</a></dt>
<ttclass="descname">alphaState</tt><big>(</big><em>alpha</em><big>)</big><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>
<ttclass="descname">embedTTF</tt><big>(</big><em>filename</em>, <em>characters</em><big>)</big><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>
<ttclass="descname">fontName</tt><big>(</big><em>fontprop</em><big>)</big><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
<ttclass="descname">imageObject</tt><big>(</big><em>image</em><big>)</big><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>
<ttclass="descname">reserveObject</tt><big>(</big><em>name=''</em><big>)</big><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
<ttclass="descname">writeInfoDict</tt><big>(</big><big>)</big><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>
<ttclass="descname">writeTrailer</tt><big>(</big><big>)</big><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.writeTrailer" title="Permalink to this definition">¶</a></dt>
<ttclass="descname">writeXref</tt><big>(</big><big>)</big><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><ttclass="descclassname">matplotlib.backends.backend_pdf.</tt><ttclass="descname">PdfPages</tt><big>(</big><em>filename</em><big>)</big><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfPages" title="Permalink to this definition">¶</a></dt>
<spanclass="c"># As many times as you like, create a figure fig, then either:</span>
<spanclass="n">fig</span><spanclass="o">.</span><spanclass="n">savefig</span><spanclass="p">(</span><spanclass="n">pp</span><spanclass="p">,</span><spanclass="n">format</span><spanclass="o">=</span><spanclass="s">'pdf'</span><spanclass="p">)</span><spanclass="c"># note the format argument!</span>
<ttclass="descname">close</tt><big>(</big><big>)</big><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
<ttclass="descname">infodict</tt><big>(</big><big>)</big><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
<ttclass="descname">savefig</tt><big>(</big><em>figure=None</em>, <em>**kwargs</em><big>)</big><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfPages.savefig" title="Permalink to this definition">¶</a></dt>
<dd><p>Save the Figure instance <em>figure</em> to this file as a new page.
If <em>figure</em> is a number, the figure instance is looked up by
number, and if <em>figure</em> is None, the active figure is saved.
Any other keyword arguments are passed to Figure.savefig.</p>
<emclass="property">class </em><ttclass="descclassname">matplotlib.backends.backend_pdf.</tt><ttclass="descname">Reference</tt><big>(</big><em>id</em><big>)</big><aclass="headerlink" href="#matplotlib.backends.backend_pdf.Reference" title="Permalink to this definition">¶</a></dt>
Use PdfFile.reserveObject() to create References.</p>
</dd></dl>
<dlclass="class">
<dtid="matplotlib.backends.backend_pdf.Stream">
<emclass="property">class </em><ttclass="descclassname">matplotlib.backends.backend_pdf.</tt><ttclass="descname">Stream</tt><big>(</big><em>id</em>, <em>len</em>, <em>file</em>, <em>extra=None</em><big>)</big><aclass="headerlink" href="#matplotlib.backends.backend_pdf.Stream" title="Permalink to this definition">¶</a></dt>
<ttclass="descname">end</tt><big>(</big><big>)</big><aclass="headerlink" href="#matplotlib.backends.backend_pdf.Stream.end" title="Permalink to this definition">¶</a></dt>
<ttclass="descname">write</tt><big>(</big><em>data</em><big>)</big><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="function">
<dtid="matplotlib.backends.backend_pdf.fill">
<ttclass="descclassname">matplotlib.backends.backend_pdf.</tt><ttclass="descname">fill</tt><big>(</big><em>strings</em>, <em>linelen=75</em><big>)</big><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
<ttclass="descclassname">matplotlib.backends.backend_pdf.</tt><ttclass="descname">new_figure_manager</tt><big>(</big><em>num</em>, <em>*args</em>, <em>**kwargs</em><big>)</big><aclass="headerlink" href="#matplotlib.backends.backend_pdf.new_figure_manager" title="Permalink to this definition">¶</a></dt>
<ttclass="descclassname">matplotlib.backends.backend_pdf.</tt><ttclass="descname">new_figure_manager_given_figure</tt><big>(</big><em>num</em>, <em>figure</em><big>)</big><aclass="headerlink" href="#matplotlib.backends.backend_pdf.new_figure_manager_given_figure" title="Permalink to this definition">¶</a></dt>
<dd><p>Create a new figure manager instance for the given figure.</p>
</dd></dl>
<dlclass="function">
<dtid="matplotlib.backends.backend_pdf.pdfRepr">
<ttclass="descclassname">matplotlib.backends.backend_pdf.</tt><ttclass="descname">pdfRepr</tt><big>(</big><em>obj</em><big>)</big><aclass="headerlink" href="#matplotlib.backends.backend_pdf.pdfRepr" title="Permalink to this definition">¶</a></dt>