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

Skip to content

Commit eab297c

Browse files
committed
Document the changes in whats_new
1 parent 93b2eea commit eab297c

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,26 @@
1-
Reproducible PS and PDF output
2-
------------------------------
1+
Reproducible PS, PDF and SVG output
2+
-----------------------------------
33

44
The ``SOURCE_DATE_EPOCH`` environment variable can now be used to set
55
the timestamp value in the PS and PDF outputs. See
66
https://reproducible-builds.org/specs/source-date-epoch/
77

8+
Alternatively, calling ``savefig`` with ``metadata={creationDate=None}``
9+
will omit the timestamp altogether.
10+
811
The reproducibility of the output from the PS and PDF backends has so
912
far been tested using various plot elements but only default values of
1013
options such as ``{ps,pdf}.fonttype`` that can affect the output at a
1114
low level, and not with the mathtext or usetex features. When
1215
matplotlib calls external tools (such as PS distillers or LaTeX) their
1316
versions need to be kept constant for reproducibility, and they may
1417
add sources of nondeterminism outside the control of matplotlib.
18+
19+
For SVG output, the ``svg.hashsalt`` rc parameter has been added in an
20+
earlier release. In can be used to change some random id values in the
21+
output to be deterministic, at the cost that including multiple such
22+
svg files in one document can lead to collisions.
23+
24+
These features are now enabled in the tests for the pdf and svg
25+
backends, so most test output files (but not all of them) are now
26+
deterministic.

0 commit comments

Comments
 (0)