Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 716a7b7 commit 9840805Copy full SHA for 9840805
doc/users/whats_new/metadata_savefig_kwarg.rst
@@ -0,0 +1,20 @@
1
+Metadata savefig kwarg
2
+----------------------
3
+
4
+:func:`~matplotlib.pyplot.savefig` now accepts `metadata` as a keyword argument.
5
+It can be used to store key/value pairs in the image metadata.
6
7
+Supported formats and backends
8
+``````````````````````````````
9
+* 'png' with Agg backend
10
+* 'pdf' with PDF backend (see
11
+ :func:`~matplotlib.backends.backend_pdf.PdfFile.writeInfoDict` for a list of
12
+ supported keywords)
13
+* 'eps' and 'ps' with PS backend (only 'Creator' key is accepted)
14
15
+Example
16
+```````
17
+::
18
19
+ plt.savefig('test.png', metadata={'Software': 'My awesome software'})
20
0 commit comments