@@ -243,7 +243,7 @@ def test_matshow(fig_test, fig_ref):
243
243
'formatter_ticker_004' ,
244
244
'formatter_ticker_005' ,
245
245
],
246
- tol = 0.031 if platform .machine () == 'arm64 ' else 0 )
246
+ tol = 0 if platform .machine () == 'x86_64 ' else 0.031 )
247
247
def test_formatter_ticker ():
248
248
import matplotlib .testing .jpl_units as units
249
249
units .register ()
@@ -444,7 +444,7 @@ def test_twin_logscale(fig_test, fig_ref, twin):
444
444
445
445
446
446
@image_comparison (['twin_autoscale.png' ],
447
- tol = 0.009 if platform .machine () == 'arm64 ' else 0 )
447
+ tol = 0 if platform .machine () == 'x86_64 ' else 0.009 )
448
448
def test_twinx_axis_scales ():
449
449
x = np .array ([0 , 0.5 , 1 ])
450
450
y = 0.5 * x
@@ -1218,9 +1218,8 @@ def test_imshow():
1218
1218
ax .imshow ("r" , data = data )
1219
1219
1220
1220
1221
- @image_comparison (
1222
- ['imshow_clip' ], style = 'mpl20' ,
1223
- tol = 1.24 if platform .machine () in ('aarch64' , 'arm64' , 'ppc64le' , 's390x' ) else 0 )
1221
+ @image_comparison (['imshow_clip' ], style = 'mpl20' ,
1222
+ tol = 0 if platform .machine () == 'x86_64' else 1.24 )
1224
1223
def test_imshow_clip ():
1225
1224
# As originally reported by Gellule Xg <gellule.xg@free.fr>
1226
1225
# use former defaults to match existing baseline image
@@ -1299,7 +1298,7 @@ def test_fill_betweenx_input(y, x1, x2):
1299
1298
1300
1299
1301
1300
@image_comparison (['fill_between_interpolate' ], remove_text = True ,
1302
- tol = 0.012 if platform .machine () == 'arm64 ' else 0 )
1301
+ tol = 0 if platform .machine () == 'x86_64 ' else 0.012 )
1303
1302
def test_fill_between_interpolate ():
1304
1303
x = np .arange (0.0 , 2 , 0.02 )
1305
1304
y1 = np .sin (2 * np .pi * x )
@@ -1727,7 +1726,8 @@ def test_pcolorauto(fig_test, fig_ref, snap):
1727
1726
ax .pcolormesh (x2 , y2 , Z , snap = snap )
1728
1727
1729
1728
1730
- @image_comparison (['canonical' ], tol = 0.02 if platform .machine () == 'arm64' else 0 )
1729
+ @image_comparison (['canonical' ],
1730
+ tol = 0 if platform .machine () == 'x86_64' else 0.02 )
1731
1731
def test_canonical ():
1732
1732
fig , ax = plt .subplots ()
1733
1733
ax .plot ([1 , 2 , 3 ])
@@ -2652,9 +2652,8 @@ def test_contour_hatching():
2652
2652
extend = 'both' , alpha = 0.5 )
2653
2653
2654
2654
2655
- @image_comparison (
2656
- ['contour_colorbar' ], style = 'mpl20' ,
2657
- tol = 0.54 if platform .machine () in ('aarch64' , 'arm64' , 'ppc64le' , 's390x' ) else 0 )
2655
+ @image_comparison (['contour_colorbar' ], style = 'mpl20' ,
2656
+ tol = 0 if platform .machine () == 'x86_64' else 0.54 )
2658
2657
def test_contour_colorbar ():
2659
2658
x , y , z = contour_dat ()
2660
2659
@@ -3232,7 +3231,7 @@ def test_log_scales_invalid():
3232
3231
3233
3232
3234
3233
@image_comparison (['stackplot_test_image' , 'stackplot_test_image' ],
3235
- tol = 0.031 if platform .machine () == 'arm64 ' else 0 )
3234
+ tol = 0 if platform .machine () == 'x86_64 ' else 0.031 )
3236
3235
def test_stackplot ():
3237
3236
fig = plt .figure ()
3238
3237
x = np .linspace (0 , 10 , 10 )
@@ -5126,7 +5125,7 @@ def test_marker_styles():
5126
5125
5127
5126
5128
5127
@image_comparison (['rc_markerfill.png' ],
5129
- tol = 0.037 if platform .machine () == 'arm64 ' else 0 )
5128
+ tol = 0 if platform .machine () == 'x86_64 ' else 0.037 )
5130
5129
def test_markers_fillstyle_rcparams ():
5131
5130
fig , ax = plt .subplots ()
5132
5131
x = np .arange (7 )
@@ -5709,7 +5708,7 @@ def test_twin_remove(fig_test, fig_ref):
5709
5708
5710
5709
5711
5710
@image_comparison (['twin_spines.png' ], remove_text = True ,
5712
- tol = 0.022 if platform .machine () == 'arm64 ' else 0 )
5711
+ tol = 0 if platform .machine () == 'x86_64 ' else 0.022 )
5713
5712
def test_twin_spines ():
5714
5713
5715
5714
def make_patch_spines_invisible (ax ):
@@ -6306,7 +6305,7 @@ def test_pie_hatch_multi(fig_test, fig_ref):
6306
6305
6307
6306
6308
6307
@image_comparison (['set_get_ticklabels.png' ],
6309
- tol = 0.025 if platform .machine () == 'arm64 ' else 0 )
6308
+ tol = 0 if platform .machine () == 'x86_64 ' else 0.025 )
6310
6309
def test_set_get_ticklabels ():
6311
6310
# test issue 2246
6312
6311
fig , ax = plt .subplots (2 )
@@ -6899,7 +6898,7 @@ def test_loglog():
6899
6898
6900
6899
6901
6900
@image_comparison (["test_loglog_nonpos.png" ], remove_text = True , style = 'mpl20' ,
6902
- tol = 0.029 if platform .machine () == 'arm64 ' else 0 )
6901
+ tol = 0 if platform .machine () == 'x86_64 ' else 0.029 )
6903
6902
def test_loglog_nonpos ():
6904
6903
fig , axs = plt .subplots (3 , 3 )
6905
6904
x = np .arange (1 , 11 )
@@ -7839,7 +7838,7 @@ def test_scatter_empty_data():
7839
7838
7840
7839
7841
7840
@image_comparison (['annotate_across_transforms.png' ], style = 'mpl20' , remove_text = True ,
7842
- tol = 0.025 if platform .machine () == 'arm64 ' else 0 )
7841
+ tol = 0 if platform .machine () == 'x86_64 ' else 0.025 )
7843
7842
def test_annotate_across_transforms ():
7844
7843
x = np .linspace (0 , 10 , 200 )
7845
7844
y = np .exp (- x ) * np .sin (x )
@@ -7870,7 +7869,7 @@ def inverted(self):
7870
7869
7871
7870
7872
7871
@image_comparison (['secondary_xy.png' ], style = 'mpl20' ,
7873
- tol = 0.027 if platform .machine () == 'arm64 ' else 0 )
7872
+ tol = 0 if platform .machine () == 'x86_64 ' else 0.027 )
7874
7873
def test_secondary_xy ():
7875
7874
fig , axs = plt .subplots (1 , 2 , figsize = (10 , 5 ), constrained_layout = True )
7876
7875
@@ -9134,7 +9133,7 @@ def test_zorder_and_explicit_rasterization():
9134
9133
9135
9134
9136
9135
@image_comparison (["preset_clip_paths.png" ], remove_text = True , style = "mpl20" ,
9137
- tol = 0.027 if platform .machine () in ( "arm64" , "ppc64le" ) else 0 )
9136
+ tol = 0 if platform .machine () == 'x86_64' else 0.027 )
9138
9137
def test_preset_clip_paths ():
9139
9138
fig , ax = plt .subplots ()
9140
9139
@@ -9467,7 +9466,7 @@ def test_boxplot_orientation(fig_test, fig_ref):
9467
9466
9468
9467
9469
9468
@image_comparison (["use_colorizer_keyword.png" ],
9470
- tol = 0.05 if platform .machine () == 'arm64 ' else 0 )
9469
+ tol = 0 if platform .machine () == 'x86_64 ' else 0.05 )
9471
9470
def test_use_colorizer_keyword ():
9472
9471
# test using the colorizer keyword
9473
9472
np .random .seed (0 )
0 commit comments