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

Skip to content

Commit b08595b

Browse files
committed
Raise tolerance on some tests
1 parent 2c9269a commit b08595b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1721,7 +1721,7 @@ def test_bxp_bad_positions():
17211721
assert_raises(ValueError, ax.bxp, logstats, positions=[2, 3])
17221722

17231723

1724-
@image_comparison(baseline_images=['boxplot', 'boxplot'])
1724+
@image_comparison(baseline_images=['boxplot', 'boxplot'], tol=1)
17251725
def test_boxplot():
17261726
x = np.linspace(-7, 7, 140)
17271727
x = np.hstack([-25, x, 25])
@@ -1780,7 +1780,7 @@ def _rc_test_bxp_helper(ax, rc_dict):
17801780
return ax
17811781

17821782
@image_comparison(baseline_images=['boxplot_rc_parameters'],
1783-
savefig_kwarg={'dpi': 100}, remove_text=True)
1783+
savefig_kwarg={'dpi': 100}, remove_text=True, tol=1)
17841784
def test_boxplot_rc_parameters():
17851785
fig, ax = plt.subplots(3)
17861786

@@ -2730,7 +2730,7 @@ def test_subplot_key_hash():
27302730

27312731
@image_comparison(baseline_images=['specgram_freqs',
27322732
'specgram_freqs_linear'],
2733-
remove_text=True, extensions=['png'])
2733+
remove_text=True, extensions=['png'], tol=0.01)
27342734
def test_specgram_freqs():
27352735
'''test axes.specgram in default (psd) mode with sinusoidal stimuli'''
27362736
n = 10000
@@ -2783,7 +2783,7 @@ def test_specgram_freqs():
27832783

27842784
@image_comparison(baseline_images=['specgram_noise',
27852785
'specgram_noise_linear'],
2786-
remove_text=True, extensions=['png'])
2786+
remove_text=True, extensions=['png'], tol=0.01)
27872787
def test_specgram_noise():
27882788
'''test axes.specgram in default (psd) mode with noise stimuli'''
27892789
np.random.seed(0)
@@ -2830,7 +2830,7 @@ def test_specgram_noise():
28302830

28312831
@image_comparison(baseline_images=['specgram_magnitude_freqs',
28322832
'specgram_magnitude_freqs_linear'],
2833-
remove_text=True, extensions=['png'])
2833+
remove_text=True, extensions=['png'], tol=0.01)
28342834
def test_specgram_magnitude_freqs():
28352835
'''test axes.specgram in magnitude mode with sinusoidal stimuli'''
28362836
n = 10000

0 commit comments

Comments
 (0)