In reality PdfPages
is a thin wrapper around PdfFile
, in order to avoid confusion when using ~.pyplot.savefig
and forgetting the format argument.
A multi-page PDF file.
>>> import matplotlib.pyplot as pltSee :
... # Initialize:
... with PdfPages('foo.pdf') as pdf:
... # As many times as you like, create a figure fig and save it:
... fig = plt.figure()
... pdf.savefig(fig)
... # When no figure is specified the current figure is saved
... pdf.savefig()
The following pages refer to to this document either explicitly or contain code examples using this.
matplotlib.pyplot.savefig
matplotlib.figure.Figure.savefig
matplotlib.backends.backend_pdf._create_pdf_info_dict
matplotlib.backends.backend_pdf.PdfPages
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