@@ -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 )
@@ -1728,7 +1727,8 @@ def test_pcolorauto(fig_test, fig_ref, snap):
1728
1727
ax .pcolormesh (x2 , y2 , Z , snap = snap )
1729
1728
1730
1729
1731
- @image_comparison (['canonical' ], tol = 0.02 if platform .machine () == 'arm64' else 0 )
1730
+ @image_comparison (['canonical' ],
1731
+ tol = 0 if platform .machine () == 'x86_64' else 0.02 )
1732
1732
def test_canonical ():
1733
1733
fig , ax = plt .subplots ()
1734
1734
ax .plot ([1 , 2 , 3 ])
@@ -2653,9 +2653,8 @@ def test_contour_hatching():
2653
2653
extend = 'both' , alpha = 0.5 )
2654
2654
2655
2655
2656
- @image_comparison (
2657
- ['contour_colorbar' ], style = 'mpl20' ,
2658
- tol = 0.54 if platform .machine () in ('aarch64' , 'arm64' , 'ppc64le' , 's390x' ) else 0 )
2656
+ @image_comparison (['contour_colorbar' ], style = 'mpl20' ,
2657
+ tol = 0 if platform .machine () == 'x86_64' else 0.54 )
2659
2658
def test_contour_colorbar ():
2660
2659
x , y , z = contour_dat ()
2661
2660
@@ -3233,7 +3232,7 @@ def test_log_scales_invalid():
3233
3232
3234
3233
3235
3234
@image_comparison (['stackplot_test_image' , 'stackplot_test_image' ],
3236
- tol = 0.031 if platform .machine () == 'arm64 ' else 0 )
3235
+ tol = 0 if platform .machine () == 'x86_64 ' else 0.031 )
3237
3236
def test_stackplot ():
3238
3237
fig = plt .figure ()
3239
3238
x = np .linspace (0 , 10 , 10 )
@@ -5138,7 +5137,7 @@ def test_marker_styles():
5138
5137
5139
5138
5140
5139
@image_comparison (['rc_markerfill.png' ],
5141
- tol = 0.037 if platform .machine () == 'arm64 ' else 0 )
5140
+ tol = 0 if platform .machine () == 'x86_64 ' else 0.037 )
5142
5141
def test_markers_fillstyle_rcparams ():
5143
5142
fig , ax = plt .subplots ()
5144
5143
x = np .arange (7 )
@@ -5721,7 +5720,7 @@ def test_twin_remove(fig_test, fig_ref):
5721
5720
5722
5721
5723
5722
@image_comparison (['twin_spines.png' ], remove_text = True ,
5724
- tol = 0.022 if platform .machine () == 'arm64 ' else 0 )
5723
+ tol = 0 if platform .machine () == 'x86_64 ' else 0.022 )
5725
5724
def test_twin_spines ():
5726
5725
5727
5726
def make_patch_spines_invisible (ax ):
@@ -6318,7 +6317,7 @@ def test_pie_hatch_multi(fig_test, fig_ref):
6318
6317
6319
6318
6320
6319
@image_comparison (['set_get_ticklabels.png' ],
6321
- tol = 0.025 if platform .machine () == 'arm64 ' else 0 )
6320
+ tol = 0 if platform .machine () == 'x86_64 ' else 0.025 )
6322
6321
def test_set_get_ticklabels ():
6323
6322
# test issue 2246
6324
6323
fig , ax = plt .subplots (2 )
@@ -6911,7 +6910,7 @@ def test_loglog():
6911
6910
6912
6911
6913
6912
@image_comparison (["test_loglog_nonpos.png" ], remove_text = True , style = 'mpl20' ,
6914
- tol = 0.029 if platform .machine () == 'arm64 ' else 0 )
6913
+ tol = 0 if platform .machine () == 'x86_64 ' else 0.029 )
6915
6914
def test_loglog_nonpos ():
6916
6915
fig , axs = plt .subplots (3 , 3 )
6917
6916
x = np .arange (1 , 11 )
@@ -7880,7 +7879,7 @@ def test_scatter_empty_data():
7880
7879
7881
7880
7882
7881
@image_comparison (['annotate_across_transforms.png' ], style = 'mpl20' , remove_text = True ,
7883
- tol = 0.025 if platform .machine () == 'arm64 ' else 0 )
7882
+ tol = 0 if platform .machine () == 'x86_64 ' else 0.025 )
7884
7883
def test_annotate_across_transforms ():
7885
7884
x = np .linspace (0 , 10 , 200 )
7886
7885
y = np .exp (- x ) * np .sin (x )
@@ -7911,7 +7910,7 @@ def inverted(self):
7911
7910
7912
7911
7913
7912
@image_comparison (['secondary_xy.png' ], style = 'mpl20' ,
7914
- tol = 0.027 if platform .machine () == 'arm64 ' else 0 )
7913
+ tol = 0 if platform .machine () == 'x86_64 ' else 0.027 )
7915
7914
def test_secondary_xy ():
7916
7915
fig , axs = plt .subplots (1 , 2 , figsize = (10 , 5 ), constrained_layout = True )
7917
7916
@@ -9174,10 +9173,8 @@ def test_zorder_and_explicit_rasterization():
9174
9173
fig .savefig (b , format = 'pdf' )
9175
9174
9176
9175
9177
- @image_comparison (
9178
- ["preset_clip_paths.png" ],
9179
- remove_text = True , style = "mpl20" ,
9180
- tol = 0.027 if platform .machine () in ("aarch64" , "arm64" , "ppc64le" ) else 0 )
9176
+ @image_comparison (["preset_clip_paths.png" ], remove_text = True , style = "mpl20" ,
9177
+ tol = 0 if platform .machine () == 'x86_64' else 0.027 )
9181
9178
def test_preset_clip_paths ():
9182
9179
fig , ax = plt .subplots ()
9183
9180
@@ -9511,7 +9508,7 @@ def test_boxplot_orientation(fig_test, fig_ref):
9511
9508
9512
9509
9513
9510
@image_comparison (["use_colorizer_keyword.png" ],
9514
- tol = 0.05 if platform .machine () == 'arm64 ' else 0 )
9511
+ tol = 0 if platform .machine () == 'x86_64 ' else 0.05 )
9515
9512
def test_use_colorizer_keyword ():
9516
9513
# test using the colorizer keyword
9517
9514
np .random .seed (0 )
0 commit comments