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

Skip to content

Commit 2773dae

Browse files
committed
DOC: move meta-data whats new
1 parent c9e5ccc commit 2773dae

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

doc/users/whats_new.rst

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,26 @@ animation. This can be displayed using IPython's ``HTML`` display class::
8989
The `~matplotlib.animation.HTMLWriter` class can also be used to generate
9090
an HTML file by asking for the ``html`` writer.
9191

92+
Metadata savefig keyword argument
93+
---------------------------------
94+
95+
:func:`~matplotlib.pyplot.savefig` now accepts ``metadata`` as a keyword
96+
argument. It can be used to store key/value pairs in the image metadata.
97+
98+
Supported formats and backends
99+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
100+
* 'png' with Agg backend
101+
* 'pdf' with PDF backend (see
102+
:func:`~matplotlib.backends.backend_pdf.PdfFile.writeInfoDict` for a list of
103+
supported keywords)
104+
* 'eps' and 'ps' with PS backend (only 'Creator' key is accepted)
105+
106+
Example
107+
~~~~~~~
108+
::
109+
110+
plt.savefig('test.png', metadata={'Software': 'My awesome software'})
111+
92112

93113
Orthographic projection for mplot3d
94114
-----------------------------------
@@ -302,26 +322,6 @@ Pending
302322

303323

304324

305-
Metadata savefig keyword argument
306-
---------------------------------
307-
308-
:func:`~matplotlib.pyplot.savefig` now accepts ``metadata`` as a keyword
309-
argument. It can be used to store key/value pairs in the image metadata.
310-
311-
Supported formats and backends
312-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
313-
* 'png' with Agg backend
314-
* 'pdf' with PDF backend (see
315-
:func:`~matplotlib.backends.backend_pdf.PdfFile.writeInfoDict` for a list of
316-
supported keywords)
317-
* 'eps' and 'ps' with PS backend (only 'Creator' key is accepted)
318-
319-
Example
320-
~~~~~~~
321-
::
322-
323-
plt.savefig('test.png', metadata={'Software': 'My awesome software'})
324-
325325

326326

327327
Specify minimum value to format as scalar for ``LogFormatterMathtext``

0 commit comments

Comments
 (0)