8000 Add example info dictionary · matplotlib/matplotlib@98b5587 · GitHub
[go: up one dir, main page]

Skip to content

Commit 98b5587

Browse files
committed
Add example info dictionary
1 parent af4c1d1 commit 98b5587

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/matplotlib/backends/backend_pdf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2456,7 +2456,9 @@ def __init__(self, filename, keep_empty=True, metadata=None):
24562456
when closed.
24572457
metadata : dictionary, optional
24582458
Information dictionary object (see PDF reference section 10.2.1
2459-
'Document Information Dictionary').
2459+
'Document Information Dictionary'), e.g.:
2460+
`{'Creator': 'My software', 'Author': 'Me',
2461+
'Title': 'Awesome fig'}`
24602462
"""
24612463
self._file = PdfFile(filename, metadata=metadata)
24622464
self.keep_empty = keep_empty

0 commit comments

Comments
 (0)
0