@@ -89,6 +89,26 @@ animation. This can be displayed using IPython's ``HTML`` display class::
8989The `~matplotlib.animation.HTMLWriter ` class can also be used to generate
9090an 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
93113Orthographic 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
327327Specify minimum value to format as scalar for ``LogFormatterMathtext ``
0 commit comments