You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configuration.rst
+7-2
Original file line number
Diff line number
Diff line change
@@ -250,8 +250,8 @@ If the RMS difference is greater than the tolerance, the test will fail.
250
250
Whether to make metadata deterministic
251
251
--------------------------------------
252
252
|**kwarg**: ``deterministic=<bool>``
253
-
|**CLI**: ---
254
-
|**INI**: ---
253
+
|**CLI**: ``--mpl-deterministic`` or ``--mpl-no-deterministic``
254
+
|**INI**: ``mpl-deterministic = <bool>``
255
255
|Default: ``True`` (PNG: ``False``)
256
256
257
257
Whether to make the image file metadata deterministic.
@@ -270,6 +270,11 @@ By default, ``pytest-mpl`` will save and compare figures in PNG format.
270
270
However, it is possible to set the format to use by setting, e.g., ``savefig_kwargs={"format": "pdf"}`` when configuring the :ref:`savefig_kwargs configuration option <savefig-kwargs>`.
271
271
Note that Ghostscript is required to be installed for comparing PDF and EPS figures, while Inkscape is required for SVG comparison.
272
272
273
+
.. note::
274
+
275
+
A future major release of ``pytest-mpl`` will generate deterministic PNG files by default.
276
+
It is recommended to explicitly set this configuration option to avoid hashes changing.
0 commit comments