@@ -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.031 if platform .machine () in { 'aarch64' , ' arm64'} else 0 )
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.009 if platform .machine () in { 'aarch64' , ' arm64'} else 0 )
448448def test_twinx_axis_scales ():
449449 x = np .array ([0 , 0.5 , 1 ])
450450 y = 0.5 * x
@@ -1299,7 +1299,7 @@ def test_fill_betweenx_input(y, x1, x2):
12991299
13001300
13011301@image_comparison (['fill_between_interpolate' ], remove_text = True ,
1302- tol = 0.012 if platform .machine () == ' arm64' else 0 )
1302+ tol = 0.012 if platform .machine () == { 'aarch64' , ' arm64'} else 0 )
13031303def test_fill_between_interpolate ():
13041304 x = np .arange (0.0 , 2 , 0.02 )
13051305 y1 = np .sin (2 * np .pi * x )
@@ -1728,7 +1728,8 @@ def test_pcolorauto(fig_test, fig_ref, snap):
17281728 ax .pcolormesh (x2 , y2 , Z , snap = snap )
17291729
17301730
1731- @image_comparison (['canonical' ], tol = 0.02 if platform .machine () == 'arm64' else 0 )
1731+ @image_comparison (['canonical' ],
1732+ tol = 0.02 if platform .machine () in {'aarch64' , 'arm64' } else 0 )
17321733def test_canonical ():
17331734 fig , ax = plt .subplots ()
17341735 ax .plot ([1 , 2 , 3 ])
@@ -3233,7 +3234,7 @@ def test_log_scales_invalid():
32333234
32343235
32353236@image_comparison (['stackplot_test_image' , 'stackplot_test_image' ],
3236- tol = 0.031 if platform .machine () == ' arm64' else 0 )
3237+ tol = 0.031 if platform .machine () in { 'aarch64' , ' arm64'} else 0 )
32373238def test_stackplot ():
32383239 fig = plt .figure ()
32393240 x = np .linspace (0 , 10 , 10 )
@@ -5127,7 +5128,7 @@ def test_marker_styles():
51275128
51285129
51295130@image_comparison (['rc_markerfill.png' ],
5130- tol = 0.037 if platform .machine () == ' arm64' else 0 )
5131+ tol = 0.037 if platform .machine () in { 'aarch64' , ' arm64'} else 0 )
51315132def test_markers_fillstyle_rcparams ():
51325133 fig , ax = plt .subplots ()
51335134 x = np .arange (7 )
@@ -5710,7 +5711,7 @@ def test_twin_remove(fig_test, fig_ref):
57105711
57115712
57125713@image_comparison (['twin_spines.png' ], remove_text = True ,
5713- tol = 0.022 if platform .machine () == ' arm64' else 0 )
5714+ tol = 0.022 if platform .machine () in { 'aarch64' , ' arm64'} else 0 )
57145715def test_twin_spines ():
57155716
57165717 def make_patch_spines_invisible (ax ):
@@ -6307,7 +6308,7 @@ def test_pie_hatch_multi(fig_test, fig_ref):
63076308
63086309
63096310@image_comparison (['set_get_ticklabels.png' ],
6310- tol = 0.025 if platform .machine () == ' arm64' else 0 )
6311+ tol = 0.025 if platform .machine () in { 'aarch64' , ' arm64'} else 0 )
63116312def test_set_get_ticklabels ():
63126313 # test issue 2246
63136314 fig , ax = plt .subplots (2 )
@@ -6900,7 +6901,7 @@ def test_loglog():
69006901
69016902
69026903@image_comparison (["test_loglog_nonpos.png" ], remove_text = True , style = 'mpl20' ,
6903- tol = 0.029 if platform .machine () == ' arm64' else 0 )
6904+ tol = 0.029 if platform .machine () in { 'aarch64' , ' arm64'} else 0 )
69046905def test_loglog_nonpos ():
69056906 fig , axs = plt .subplots (3 , 3 )
69066907 x = np .arange (1 , 11 )
@@ -7900,7 +7901,7 @@ def inverted(self):
79007901
79017902
79027903@image_comparison (['secondary_xy.png' ], style = 'mpl20' ,
7903- tol = 0.027 if platform .machine () == ' arm64' else 0 )
7904+ tol = 0.027 if platform .machine () in { 'aarch64' , ' arm64'} else 0 )
79047905def test_secondary_xy ():
79057906 fig , axs = plt .subplots (1 , 2 , figsize = (10 , 5 ), constrained_layout = True )
79067907
@@ -9166,7 +9167,7 @@ def test_zorder_and_explicit_rasterization():
91669167@image_comparison (
91679168 ["preset_clip_paths.png" ],
91689169 remove_text = True , style = "mpl20" ,
9169- tol = 0.027 if platform .machine () in ( "aarch64" , "arm64" , "ppc64le" ) else 0 )
9170+ tol = 0.027 if platform .machine () in { "aarch64" , "arm64" , "ppc64le" } else 0 )
91709171def test_preset_clip_paths ():
91719172 fig , ax = plt .subplots ()
91729173
@@ -9500,7 +9501,7 @@ def test_boxplot_orientation(fig_test, fig_ref):
95009501
95019502
95029503@image_comparison (["use_colorizer_keyword.png" ],
9503- tol = 0.05 if platform .machine () == ' arm64' else 0 )
9504+ tol = 0.05 if platform .machine () in { 'aarch64' , ' arm64'} else 0 )
95049505def test_use_colorizer_keyword ():
95059506 # test using the colorizer keyword
95069507 np .random .seed (0 )
0 commit comments