matplotlib 3.5.1

NotesBackRef

Notes

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.

Examples

>>> import matplotlib.pyplot as plt
... # 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()
See :

Back References

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

Local connectivity graph

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


File: /matplotlib/backends/backend_pdf.py#2639
type: <class 'type'>
Commit: