print_figure(self, filename, dpi=None, facecolor=None, edgecolor=None, orientation='portrait', format=None, *, bbox_inches=None, pad_inches=None, bbox_extra_artists=None, backend=None, **kwargs)
The file where the figure is saved.
The dots per inch to save the figure in.
The facecolor of the figure. If 'auto', use the current figure facecolor.
The edgecolor of the figure. If 'auto', use the current figure edgecolor.
Only currently applies to PostScript printing.
Force a specific file format. If not given, the format is inferred from the filename extension, and if that fails from savefig.format
.
Bounding box in inches: only the given portion of the figure is saved. If 'tight', try to figure out the tight bbox of the figure.
Amount of padding around the figure when bbox_inches is 'tight'.
A list of extra artists that will be considered when the tight bbox is calculated.
Use a non-default backend to render the file, e.g. to render a png file with the "cairo" backend rather than the default "agg", or a pdf file with the "pgf" backend rather than the default "pdf". Note that the default backend is normally sufficient. See the-builtin-backends
for a list of valid backends for each file format. Custom backends can be referenced as "module://...".
Render the figure to hardcopy. Set the figure patch face and edge colors. This is useful because some of the GUIs have a gray figure face color background and you'll probably want to override this on hardcopy.
The following pages refer to to this document either explicitly or contain code examples using this.
matplotlib.backends.backend_ps.FigureCanvasPS._print_figure
matplotlib.backend_bases._check_savefig_extra_args
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them