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

Skip to content

Commit ca56534

Browse files
committed
Install cm-super fonts and lower tol of tests that should pass with the right fonts
1 parent f3f213c commit ca56534

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ addons:
1515
- dvipng
1616
- pgf
1717
- lmodern
18+
- cm-super
1819
- texlive-latex-base
1920
- texlive-latex-extra
2021
- texlive-fonts-recommended

lib/matplotlib/tests/test_backend_pgf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def test_pdflatex():
104104
'\\usepackage[T1]{fontenc}']}
105105
mpl.rcParams.update(rc_pdflatex)
106106
create_figure()
107-
compare_figure('pgf_pdflatex.pdf', tol=14)
107+
compare_figure('pgf_pdflatex.pdf', tol=0)
108108

109109

110110
# test updating the rc parameters for each figure
@@ -129,7 +129,7 @@ def test_rcupdate():
129129
'pgf.preamble': ['\\usepackage[utf8x]{inputenc}',
130130
'\\usepackage[T1]{fontenc}',
131131
'\\usepackage{sfmath}']})
132-
tol = (4, 13)
132+
tol = (4, 0)
133133
for i, rc_set in enumerate(rc_sets):
134134
mpl.rcParams.update(rc_set)
135135
create_figure()

0 commit comments

Comments
 (0)