Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ef48e6a

Browse files
committed
Add example info dictionary
1 parent 648939e commit ef48e6a

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
@@ -2427,7 +2427,9 @@ def __init__(self, filename, keep_empty=True, metadata=None):
24272427
when closed.
24282428
metadata : dictionary, optional
24292429
Information dictionary object (see PDF reference section 10.2.1
2430-
'Document Information Dictionary').
2430+
'Document Information Dictionary'), e.g.:
2431+
`{'Creator': 'My software', 'Author': 'Me',
2432+
'Title': 'Awesome fig'}`
24312433
"""
24322434
self._file = PdfFile(filename, metadata=metadata)
24332435
self.keep_empty = keep_empty

0 commit comments

Comments
 (0)