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

Skip to content

Commit 93b2eea

Browse files
committed
Reproducible svg
1 parent 8c7adbb commit 93b2eea

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/matplotlib/testing/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ def set_font_settings_for_testing():
136136
rcParams['text.hinting_factor'] = 8
137137

138138

139+
def set_reproducibility_for_testing():
140+
rcParams['svg.hashsalt'] = 'matplotlib'
141+
142+
139143
def setup():
140144
# The baseline images are created in this locale, so we should use
141145
# it during all of the tests.
@@ -161,3 +165,4 @@ def setup():
161165
rcdefaults() # Start with all defaults
162166

163167
set_font_settings_for_testing()
168+
set_reproducibility_for_testing()

0 commit comments

Comments
 (0)