8000 Fix pgf backend test images · ImSoErgodic/matplotlib@f5e87d4 · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit f5e87d4

Browse files
efiringmdboom
authored andcommitted
Fix pgf backend test images
1 parent 7170811 commit f5e87d4

File tree

7 files changed

+3
-0
lines changed

7 files changed

+3
-0
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

lib/matplotlib/tests/test_backend_pgf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,10 @@ def test_rcupdate():
134134
'\\usepackage[T1]{fontenc}',
135135
'\\usepackage{sfmath}']})
136136
tol = (6, 0)
137+
original_params = mpl.rcParams.copy()
137138
for i, rc_set in enumerate(rc_sets):
139+
mpl.rcParams.clear()
140+
mpl.rcParams.update(original_params)
138141
mpl.rcParams.update(rc_set)
139142
create_figure()
140143
compare_figure('pgf_rcupdate%d.pdf' % (i + 1), tol=tol[i])

0 commit comments

Comments
 (0)
0