matplotlib 3.5.1

Parameters
__init__(self, filename, keep_empty=True, metadata=None)

Parameters

filename : str or path-like or file-like

Plots using PdfPages.savefig will be written to a file at this location. The file is opened at once and any older file with the same name is overwritten.

keep_empty : bool, optional

If set to False, then empty pdf files will be deleted automatically when closed.

metadata : dict, optional

Information dictionary object (see PDF reference section 10.2.1 'Document Information Dictionary'), e.g.: {'Creator': 'My software', 'Author': 'Me', 'Title': 'Awesome'} .

The standard keys are 'Title', 'Author', 'Subject', 'Keywords', 'Creator', 'Producer', 'CreationDate', 'ModDate', and 'Trapped'. Values have been predefined for 'Creator', 'Producer' and 'CreationDate'. They can be removed by setting them to :None:None:`None`.

Create a new PdfPages object.

Examples

See :

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#2661
type: <class 'function'>
Commit: