matplotlib.backends.backend_ps#
A PostScript backend, which can produce both PostScript .ps and .eps.
- matplotlib.backends.backend_ps.FigureCanvas[source]#
alias of
FigureCanvasPS
- class matplotlib.backends.backend_ps.FigureCanvasPS(figure=None)[source]#
Bases:
FigureCanvasBase- draw()[source]#
Render the
Figure.This method must walk the artist tree, even if no output is produced, because it triggers deferred work that users may want to access before saving output to disk. For example computing limits, auto-limits, and tick values.
- filetypes = {'eps': 'Encapsulated Postscript', 'ps': 'Postscript'}#
- fixed_dpi = 72#
- get_default_filetype()[source]#
Return the default savefig file format as specified in
rcParams["savefig.format"](default:'png').The returned string does not include a period. This method is overridden in backends that only support a single file type.
- print_eps(outfile, *, metadata=None, papertype=None, orientation='portrait', bbox_inches_restore=None, **kwargs)#
- print_ps(outfile, *, metadata=None, papertype=None, orientation='portrait', bbox_inches_restore=None, **kwargs)#
- class matplotlib.backends.backend_ps.RendererPS(width, height, pswriter, imagedpi=72)[source]#
Bases:
RendererPDFPSBaseThe renderer handles all the drawing primitives using a graphics context instance that controls the colors/styles.
- draw_gouraud_triangles(gc, points, colors, trans)[source]#
Draw a series of Gouraud triangles.
- Parameters:
- gc
GraphicsContextBase The graphics context.
- triangles_array(N, 3, 2) array-like
Array of N (x, y) points for the triangles.
- colors_array(N, 3, 4) array-like
Array of N RGBA colors for each point of the triangles.
- transform
Transform An affine transform to apply to the points.
- gc
- draw_image(