matplotlib.backends.backend_mixed¶
-
class
matplotlib.backends.backend_mixed.MixedModeRenderer(figure, width, height, dpi, vector_renderer, raster_renderer_class=None, bbox_inches_restore=None)[source]¶ Bases:
objectA helper class to implement a renderer that switches between vector and raster drawing. An example may be a PDF writer, where most things are drawn with PDF vector commands, but some very complex objects, such as quad meshes, are rasterised and then output as images.
Parameters: figure :
matplotlib.figure.FigureThe figure instance.
width : scalar
The width of the canvas in logical units
height : scalar
The height of the canvas in logical units
dpi : scalar
The dpi of the canvas
vector_renderer :
matplotlib.backend_bases.RendererBaseAn instance of a subclass of
RendererBasethat will be used for the vector drawing.raster_renderer_class :
matplotlib.backend_bases.RendererBaseThe renderer class to use for the raster drawing. If not provided, this will use the Agg backend (which is currently the only viable option anyway.)