matplotlib 3.5.1

ParametersReturns
_create_pdf_info_dict(backend, metadata)

A default Creator , Producer , and CreationDate are added, though the user metadata may override it. The date may be the current time, or a time set by the SOURCE_DATE_EPOCH environment variable.

Metadata is verified to have the correct keys and their expected types. Any unknown keys/types will raise a warning.

Parameters

backend : str

The name of the backend to use in the Producer value.

metadata : dict[str, Union[str, datetime, Name]]

A dictionary of metadata supplied by the user with information following the PDF specification, also defined in ~.backend_pdf.PdfPages below.

If any value is None, then the key will be removed. This can be used to remove any pre-defined values.

Returns

dict[str, Union[str, datetime, Name]]

A validated dictionary of metadata.

Create a PDF infoDict based on user-supplied metadata.

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