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
<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>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>
<dd><p>Get the default savefig file format as specified in rcParam
<codeclass="docutils literal notranslate"><spanclass="pre">savefig.format</span></code>. Returned string excludes period. Overridden
in backends that only support a single file type.</p>
<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>
<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><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>
<emclass="property">static </em><codeclass="descname">pathOperations</code><spanclass="sig-paren">(</span><em>transform</em>, <em>clip=None</em>, <em>simplify=None</em>, <em>sketch=None</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.PdfFile.pathOperations" 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 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-class 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-func docutils literal notranslate"><spanclass="pre">savefig()</span></code></a> and
<dd><pclass="first last">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 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
<codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">'ModDate'</span></code>, and <codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">'Trapped'</span></code>. Values have been predefined
for <codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">'Creator'</span></code>, <codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">'Producer'</span></code> and <codeclass="xref py py-obj docutils literal notranslate"><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 notranslate"><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 notranslate"><spanclass="pre">Figure</span></code></a> to this file as a new page.</p>
<dd><pclass="first last">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 notranslate"><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>
transformation <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>. It takes the
form of a <aclass="reference internal" href="transformations.html#matplotlib.transforms.Affine2DBase" title="matplotlib.transforms.Affine2DBase"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Affine2DBase</span></code></a> instance.
The translation vector of the transformation is given in physical
units (i.e., dots or pixels). Note that the transformation does not
override <codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">x</span></code> and <codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">y</span></code>, and has to be applied <em>before</em> translating
the result by <codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">x</span></code> and <codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">y</span></code> (this can be accomplished by adding <codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">x</span></code>
and <codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">y</span></code> to the translation vector defined by <codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">transform</span></code>).</p>
<codeclass="descname">draw_markers</code><spanclass="sig-paren">(</span><em>gc</em>, <em>marker_path</em>, <em>marker_trans</em>, <em>path</em>, <em>trans</em>, <em>rgbFace=None</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.RendererPdf.draw_markers" title="Permalink to this definition">¶</a></dt>
<dd><p>Draws a marker at each of the vertices in path. 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>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>
<dd><p>Draws a <aclass="reference internal" href="path_api.html#matplotlib.path.Path" title="matplotlib.path.Path"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Path</span></code></a> instance using the
<codeclass="descname">draw_path_collection</code><spanclass="sig-paren">(</span><em>gc</em>, <em>master_transform</em>, <em>paths</em>, <em>all_transforms</em>, <em>offsets</em>, <em>offsetTrans</em>, <em>facecolors</em>, <em>edgecolors</em>, <em>linewidths</em>, <em>linestyles</em>, <em>antialiaseds</em>, <em>urls</em>, <em>offset_position</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.backends.backend_pdf.RendererPdf.draw_path_collection" title="Permalink to this definition">¶</a></dt>
<dd><p>Draws 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. <em>offset_position</em> may be either “screen” or “data”
depending on the space that the offsets are in.</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>
<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>
<dd><p>Return true if y small numbers are top for renderer Is used
for drawing text (<aclass="reference internal" href="text_api.html#module-matplotlib.text" title="matplotlib.text"><codeclass="xref py py-mod docutils literal notranslate"><spanclass="pre">matplotlib.text</span></code></a>) and images
<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>
<dd><p>return the canvas width and height in display coords</p>
<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>
<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">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>
<dd><p>Get the width, height, and descent (offset from the bottom
to the baseline), in display coords, of the string <em>s</em> with
<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>
<dd><p>Return an instance of a <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">GraphicsContextBase</span></code></p>
<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>