classmatplotlib.backends.backend_agg.FigureCanvasAgg(figure=None)[source]
 
Bases: matplotlib.backend_bases.FigureCanvasBase   buffer_rgba()[source]
 
Get the image as a memoryview to the renderer's buffer. draw must be called at least once before this function will work and to update the renderer for any subsequent changes to the Figure. 
   copy_from_bbox(bbox)[source]

   draw()[source]
 
Render the Figure. It is important that this method actually walk the artist tree even if not output is produced because this will trigger deferred work (like computing limits auto-limits and tick values) that users may want access to before saving to disk. 
   get_renderer(cleared=False)[source]

   print_jpeg(filename_or_obj, *args, pil_kwargs=None, **kwargs)[source]
 
Write the figure to a JPEG file.  Parameters 
 
filename_or_objstr or path-like or file-like


The file to write to.    Other Parameters 
 
pil_kwargsdict, optional


Additional keyword arguments that are passed to PIL.Image.Image.save when saving the figure.     
   print_jpg(filename_or_obj, *args, pil_kwargs=None, **kwargs)[source]
 
Write the figure to a JPEG file.  Parameters 
 
filename_or_objstr or path-like or file-like


The file to write to.    Other Parameters 
 
pil_kwargsdict, optional


Additional keyword arguments that are passed to PIL.Image.Image.save when saving the figure.     
   print_png(filename_or_obj, *args, metadata=None, pil_kwargs=None)[source]
 
Write the figure to a PNG file.  Parameters 
 
filename_or_objstr or path-like or file-like


The file to write to.  
metadatadict, optional


Metadata in the PNG file as key-value pairs of bytes or latin-1 encodable strings. According to the PNG specification, keys must be shorter than 79 chars. The PNG specification defines some common keywords that may be used as appropriate:  Title: Short (one line) title or caption for image. Author: Name of image's creator. Description: Description of image (possibly long). Copyright: Copyright notice. Creation Time: Time of original image creation (usually RFC 1123 format). Software: Software used to create the image. Disclaimer: Legal disclaimer. Warning: Warning of nature of content. Source: Device used to create the image. Comment: Miscellaneous comment; conversion from other image format.  Other keywords may be invented for other purposes. If 'Software' is not given, an autogenerated value for Matplotlib will be used. This can be removed by setting it to None. For more details see the PNG specification.  
pil_kwargsdict, optional


Keyword arguments passed to PIL.Image.Image.save. If the 'pnginfo' key is present, it completely overrides metadata, including the default 'Software' key.     
   print_raw(filename_or_obj, *args)[source]

   print_rgba(filename_or_obj, *args)[source]

   print_tif(filename_or_obj, *, pil_kwargs=None)[source]

   print_tiff(filename_or_obj, *, pil_kwargs=None)[source]

   print_to_buffer()[source]

   restore_region(region, bbox=None, xy=None)[source]

   tostring_argb()[source]
 
Get the image as ARGB bytes. draw must be called at least once before this function will work and to update the renderer for any subsequent changes to the Figure. 
   tostring_rgb()[source]
 
Get the image as RGB bytes. draw must be called at least once before this function will work and to update the renderer for any subsequent changes to the Figure.