@@ -243,7 +243,7 @@ def test_matshow(fig_test, fig_ref):
243243 'formatter_ticker_004' ,
244244 'formatter_ticker_005' ,
245245 ],
246- tol = 0.031 if platform .machine () == 'arm64 ' else 0 )
246+ tol = 0 if platform .machine () == 'x86_64 ' else 0.031 )
247247def test_formatter_ticker ():
248248 import matplotlib .testing .jpl_units as units
249249 units .register ()
@@ -444,7 +444,7 @@ def test_twin_logscale(fig_test, fig_ref, twin):
444444
445445
446446@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 )
448448def test_twinx_axis_scales ():
449449 x = np .array ([0 , 0.5 , 1 ])
450450 y = 0.5 * x
@@ -1218,9 +1218,8 @@ def test_imshow():
12181218 ax .imshow ("r" , data = data )
12191219
12201220
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 )
12241223def test_imshow_clip ():
12251224 # As originally reported by Gellule Xg <gellule.xg@free.fr>
12261225 # use former defaults to match existing baseline image
@@ -1299,7 +1298,7 @@ def test_fill_betweenx_input(y, x1, x2):
12991298
13001299
13011300@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 )
13031302def test_fill_between_interpolate ():
13041303 x = np .arange (0.0 , 2 , 0.02 )
13051304 y1 = np .sin (2 * np .pi * x )
@@ -1728,7 +1727,8 @@ def test_pcolorauto(fig_test, fig_ref, snap):
17281727 ax .pcolormesh (x2 , y2 , Z , snap = snap )
17291728
17301729
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 )
17321732def test_canonical ():
17331733 fig , ax = plt .subplots ()
17341734 ax .plot ([1 , 2 , 3 ])
@@ -2653,9 +2653,8 @@ def test_contour_hatching():
26532653 extend = 'both' , alpha = 0.5 )
26542654
26552655
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 )
26592658def test_contour_colorbar ():
26602659 x , y , z = contour_dat ()
26612660
@@ -3233,7 +3232,7 @@ def test_log_scales_invalid():
32333232
32343233
32353234@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 )
32373236def test_stackplot ():
32383237 fig = plt .figure ()
32393238 x = np .linspace (0 , 10 , 10 )
@@ -5138,7 +5137,7 @@ def test_marker_styles():
51385137
51395138
51405139@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 )
51425141def test_markers_fillstyle_rcparams ():
51435142 fig , ax = plt .subplots ()
51445143 x = np .arange (7 )
@@ -5721,7 +5720,7 @@ def test_twin_remove(fig_test, fig_ref):
57215720
57225721
57235722@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 )
57255724def test_twin_spines ():
57265725
57275726 def make_patch_spines_invisible (ax ):
@@ -6318,7 +6317,7 @@ def test_pie_hatch_multi(fig_test, fig_ref):
63186317
63196318
63206319@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 )
63226321def test_set_get_ticklabels ():
63236322 # test issue 2246
63246323 fig , ax = plt .subplots (2 )
@@ -6911,7 +6910,7 @@ def test_loglog():
69116910
69126911
69136912@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 )
69156914def test_loglog_nonpos ():
69166915 fig , axs = plt .subplots (3 , 3 )
69176916 x = np .arange (1 , 11 )
@@ -7880,7 +7879,7 @@ def test_scatter_empty_data():
78807879
78817880
78827881@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 )
78847883def test_annotate_across_transforms ():
78857884 x = np .linspace (0 , 10 , 200 )
78867885 y = np .exp (- x ) * np .sin (x )
@@ -7911,7 +7910,7 @@ def inverted(self):
79117910
79127911
79137912@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 )
79157914def test_secondary_xy ():
79167915 fig , axs = plt .subplots (1 , 2 , figsize = (10 , 5 ), constrained_layout = True )
79177916
@@ -9174,10 +9173,8 @@ def test_zorder_and_explicit_rasterization():
91749173 fig .savefig (b , format = 'pdf' )
91759174
91769175
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 )
91819178def test_preset_clip_paths ():
91829179 fig , ax = plt .subplots ()
91839180
@@ -9511,7 +9508,7 @@ def test_boxplot_orientation(fig_test, fig_ref):
95119508
95129509
95139510@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 )
95159512def test_use_colorizer_keyword ():
95169513 # test using the colorizer keyword
95179514 np .random .seed (0 )
0 commit comments