<divid="unreleased-message"> You are reading an old version of the documentation (v3.0.3). For the latest version see <ahref="https://matplotlib.org/stable/api/backend_ps_api.html">https://matplotlib.org/stable/api/backend_ps_api.html</a></div>
<codeclass="descclassname">matplotlib.backends.backend_ps.</code><codeclass="descname">FigureCanvas</code><aclass="headerlink" href="#matplotlib.backends.backend_ps.FigureCanvas" title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="descclassname">matplotlib.backends.backend_ps.</code><codeclass="descname">FigureCanvasPS</code><spanclass="sig-paren">(</span><em>figure</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_ps.html#FigureCanvasPS"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_ps.FigureCanvasPS" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">draw</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_ps.html#FigureCanvasPS.draw"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_ps.FigureCanvasPS.draw" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">fixed_dpi</code><emclass="property"> = 72</em><aclass="headerlink" href="#matplotlib.backends.backend_ps.FigureCanvasPS.fixed_dpi" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">get_default_filetype</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_ps.html#FigureCanvasPS.get_default_filetype"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_ps.FigureCanvasPS.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_eps</code><spanclass="sig-paren">(</span><em>outfile</em>, <em>*args</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_ps.html#FigureCanvasPS.print_eps"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_ps.FigureCanvasPS.print_eps" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">print_ps</code><spanclass="sig-paren">(</span><em>outfile</em>, <em>*args</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_ps.html#FigureCanvasPS.print_ps"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_ps.FigureCanvasPS.print_ps" title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="descclassname">matplotlib.backends.backend_ps.</code><codeclass="descname">GraphicsContextPS</code><aclass="reference internal" href="../_modules/matplotlib/backends/backend_ps.html#GraphicsContextPS"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_ps.GraphicsContextPS" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">get_capstyle</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_ps.html#GraphicsContextPS.get_capstyle"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_ps.GraphicsContextPS.get_capstyle" title="Permalink to this definition">¶</a></dt>
<dd><p>Return the capstyle as a string in ('butt', 'round', 'projecting')</p>
<codeclass="descname">get_joinstyle</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_ps.html#GraphicsContextPS.get_joinstyle"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_ps.GraphicsContextPS.get_joinstyle" title="Permalink to this definition">¶</a></dt>
<dd><p>Return the line join style as one of ('miter', 'round', 'bevel')</p>
<codeclass="descname">shouldstroke</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_ps.html#GraphicsContextPS.shouldstroke"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_ps.GraphicsContextPS.shouldstroke" title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="descclassname">matplotlib.backends.backend_ps.</code><codeclass="descname">PsBackendHelper</code><aclass="reference internal" href="../_modules/matplotlib/backends/backend_ps.html#PsBackendHelper"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_ps.PsBackendHelper" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">gs_exe</code><aclass="headerlink" href="#matplotlib.backends.backend_ps.PsBackendHelper.gs_exe" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">gs_version</code><aclass="headerlink" href="#matplotlib.backends.backend_ps.PsBackendHelper.gs_version" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">supports_ps2write</code><aclass="headerlink" href="#matplotlib.backends.backend_ps.PsBackendHelper.supports_ps2write" title="Permalink to this definition">¶</a></dt>
<dd><p>True if the installed ghostscript supports ps2write device.</p>
<codeclass="descname">afmfontd</code><emclass="property"> = {}</em><aclass="headerlink" href="#matplotlib.backends.backend_ps.RendererPS.afmfontd" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">create_hatch</code><spanclass="sig-paren">(</span><em>hatch</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_ps.html#RendererPS.create_hatch"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_ps.RendererPS.create_hatch" title="Permalink to this definition">¶</a></dt>
<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="reference internal" href="../_modules/matplotlib/backends/backend_ps.html#RendererPS.draw_path_collection"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_ps.RendererPS.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_ps.RendererPS.draw_path_collection" title="matplotlib.backends.backend_ps.RendererPS.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_ps.RendererPS.draw_path" title="matplotlib.backends.backend_ps.RendererPS.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_ps.RendererPS.draw_path_collection" title="matplotlib.backends.backend_ps.RendererPS.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">flipy</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_ps.html#RendererPS.flipy"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_ps.RendererPS.flipy" title="Permalink to this definition">¶</a></dt>
<dd><p>return true if small y numbers are top for renderer</p>
<codeclass="descname">get_canvas_width_height</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_ps.html#RendererPS.get_canvas_width_height"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_ps.RendererPS.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="reference internal" href="../_modules/matplotlib/backends/backend_ps.html#RendererPS.get_image_magnification"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_ps.RendererPS.get_image_magnification" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the factor by which to magnify images passed to draw_image.
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="reference internal" href="../_modules/matplotlib/backends/backend_ps.html#RendererPS.get_text_width_height_descent"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_ps.RendererPS.get_text_width_height_descent" title="Permalink to this definition">¶</a></dt>
<dd><p>get the width and height in display coords of the string s
<codeclass="descname">merge_used_characters</code><spanclass="sig-paren">(</span><em>other</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_ps.html#RendererPS.merge_used_characters"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_ps.RendererPS.merge_used_characters" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">new_gc</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_ps.html#RendererPS.new_gc"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_ps.RendererPS.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="reference internal" href="../_modules/matplotlib/backends/backend_ps.html#RendererPS.option_image_nocomposite"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_ps.RendererPS.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="reference internal" href="../_modules/matplotlib/backends/backend_ps.html#RendererPS.option_scale_image"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_ps.RendererPS.option_scale_image" title="Permalink to this definition">¶</a></dt>
<dd><p>ps backend support arbitrary scaling of image.</p>
<codeclass="descname">set_font</code><spanclass="sig-paren">(</span><em>fontname</em>, <em>fontsize</em>, <em>store=1</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_ps.html#RendererPS.set_font"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_ps.RendererPS.set_font" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">set_linecap</code><spanclass="sig-paren">(</span><em>linecap</em>, <em>store=1</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_ps.html#RendererPS.set_linecap"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_ps.RendererPS.set_linecap" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">set_linedash</code><spanclass="sig-paren">(</span><em>offset</em>, <em>seq</em>, <em>store=1</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_ps.html#RendererPS.set_linedash"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_ps.RendererPS.set_linedash" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">set_linejoin</code><spanclass="sig-paren">(</span><em>linejoin</em>, <em>store=1</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_ps.html#RendererPS.set_linejoin"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_ps.RendererPS.set_linejoin" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">set_linewidth</code><spanclass="sig-paren">(</span><em>linewidth</em>, <em>store=1</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_ps.html#RendererPS.set_linewidth"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_ps.RendererPS.set_linewidth" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">track_characters</code><spanclass="sig-paren">(</span><em>font</em>, <em>s</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_ps.html#RendererPS.track_characters"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_ps.RendererPS.track_characters" title="Permalink to this definition">¶</a></dt>
<dd><p>Keeps track of which characters are required from
<codeclass="descclassname">matplotlib.backends.backend_ps.</code><codeclass="descname">convert_psfrags</code><spanclass="sig-paren">(</span><em>tmpfile</em>, <em>psfrags</em>, <em>font_preamble</em>, <em>custom_preamble</em>, <em>paperWidth</em>, <em>paperHeight</em>, <em>orientation</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_ps.html#convert_psfrags"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_ps.convert_psfrags" title="Permalink to this definition">¶</a></dt>
<dd><p>When we want to use the LaTeX backend with postscript, we write PSFrag tags
to a temporary postscript file, each one marking a position for LaTeX to
render some text. convert_psfrags generates a LaTeX document containing the
commands to convert those tags to text. LaTeX/dvips produces the postscript
file that includes the actual text.</p>
</dd></dl>
<dlclass="function">
<dtid="matplotlib.backends.backend_ps.get_bbox">
<codeclass="descclassname">matplotlib.backends.backend_ps.</code><codeclass="descname">get_bbox</code><spanclass="sig-paren">(</span><em>tmpfile</em>, <em>bbox</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_ps.html#get_bbox"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_ps.get_bbox" title="Permalink to this definition">¶</a></dt>
<dd><divclass="deprecated">
<p><spanclass="versionmodified">Deprecated since version 3.0: </span>The get_bbox function was deprecated in Matplotlib 3.0 and will be removed in 3.2.</p>
</div>
<p>Use ghostscript's bbox device to find the center of the bounding box.
Return an appropriately sized bbox centered around that point. A bit of a
<codeclass="descclassname">matplotlib.backends.backend_ps.</code><codeclass="descname">get_bbox_header</code><spanclass="sig-paren">(</span><em>lbrt</em>, <em>rotated=False</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_ps.html#get_bbox_header"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_ps.get_bbox_header" title="Permalink to this definition">¶</a></dt>
<dd><p>return a postscript header stringfor the given bbox lbrt=(l, b, r, t).
<codeclass="descclassname">matplotlib.backends.backend_ps.</code><codeclass="descname">gs_distill</code><spanclass="sig-paren">(</span><em>tmpfile</em>, <em>eps=False</em>, <em>ptype='letter'</em>, <em>bbox=None</em>, <em>rotated=False</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_ps.html#gs_distill"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_ps.gs_distill" title="Permalink to this definition">¶</a></dt>
<dd><p>Use ghostscript's pswrite or epswrite device to distill a file.
This yields smaller files without illegal encapsulated postscript
operators. The output is low-level, converting text to outlines.</p>
</dd></dl>
<dlclass="function">
<dtid="matplotlib.backends.backend_ps.pstoeps">
<codeclass="descclassname">matplotlib.backends.backend_ps.</code><codeclass="descname">pstoeps</code><spanclass="sig-paren">(</span><em>tmpfile</em>, <em>bbox=None</em>, <em>rotated=False</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_ps.html#pstoeps"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_ps.pstoeps" title="Permalink to this definition">¶</a></dt>
<dd><p>Convert the postscript to encapsulated postscript. The bbox of
the eps file will be replaced with the given <em>bbox</em> argument. If
<codeclass="descclassname">matplotlib.backends.backend_ps.</code><codeclass="descname">quote_ps_string</code><spanclass="sig-paren">(</span><em>s</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/backends/backend_ps.html#quote_ps_string"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.backends.backend_ps.quote_ps_string" title="Permalink to this definition">¶</a></dt>
<dd><p>Quote dangerous characters of S for use in a PostScript string constant.</p>