@@ -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 () != 'x86_64 ' 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 () != 'x86_64 ' else 0 )
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 = 1.24 if platform .machine () != 'x86_64' else 0 )
12241223def test_imshow_clip ():
12251224 # As originally reported by Gellule Xg <[email protected] > 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.012 if platform .machine () != 'x86_64 ' else 0 )
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.02 if platform .machine () != 'x86_64' else 0 )
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.54 if platform .machine () != 'x86_64' else 0 )
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.031 if platform .machine () != 'x86_64 ' else 0 )
32373236def test_stackplot ():
32383237 fig = plt .figure ()
32393238 x = np .linspace (0 , 10 , 10 )
@@ -5127,7 +5126,7 @@ def test_marker_styles():
51275126
51285127
51295128@image_comparison (['rc_markerfill.png' ],
5130- tol = 0.037 if platform .machine () == 'arm64 ' else 0 )
5129+ tol = 0.037 if platform .machine () != 'x86_64 ' else 0 )
51315130def test_markers_fillstyle_rcparams ():
51325131 fig , ax = plt .subplots ()
51335132 x = np .arange (7 )
@@ -5150,7 +5149,7 @@ def test_vertex_markers():
51505149
51515150
51525151@image_comparison (['vline_hline_zorder' , 'errorbar_zorder' ],
5153- tol = 0 if platform .machine () == 'x86_64' else 0.026 )
5152+ tol = 0.026 if platform .machine () != 'x86_64' else 0 )
51545153def test_eb_line_zorder ():
51555154 x = list (range (10 ))
51565155
@@ -5710,7 +5709,7 @@ def test_twin_remove(fig_test, fig_ref):
57105709
57115710
57125711@image_comparison (['twin_spines.png' ], remove_text = True ,
5713- tol = 0.022 if platform .machine () == 'arm64 ' else 0 )
5712+ tol = 0.022 if platform .machine () != 'x86_64 ' else 0 )
57145713def test_twin_spines ():
57155714
57165715 def make_patch_spines_invisible (ax ):
@@ -6307,7 +6306,7 @@ def test_pie_hatch_multi(fig_test, fig_ref):
63076306
63086307
63096308@image_comparison (['set_get_ticklabels.png' ],
6310- tol = 0.025 if platform .machine () == 'arm64 ' else 0 )
6309+ tol = 0.025 if platform .machine () != 'x86_64 ' else 0 )
63116310def test_set_get_ticklabels ():
63126311 # test issue 2246
63136312 fig , ax = plt .subplots (2 )
@@ -6900,7 +6899,7 @@ def test_loglog():
69006899
69016900
69026901@image_comparison (["test_loglog_nonpos.png" ], remove_text = True , style = 'mpl20' ,
6903- tol = 0.029 if platform .machine () == 'arm64 ' else 0 )
6902+ tol = 0.029 if platform .machine () != 'x86_64 ' else 0 )
69046903def test_loglog_nonpos ():
69056904 fig , axs = plt .subplots (3 , 3 )
69066905 x = np .arange (1 , 11 )
@@ -7869,7 +7868,7 @@ def test_scatter_empty_data():
78697868
78707869
78717870@image_comparison (['annotate_across_transforms.png' ], style = 'mpl20' , remove_text = True ,
7872- tol = 0.025 if platform .machine () == 'arm64 ' else 0 )
7871+ tol = 0.025 if platform .machine () != 'x86_64 ' else 0 )
78737872def test_annotate_across_transforms ():
78747873 x = np .linspace (0 , 10 , 200 )
78757874 y = np .exp (- x ) * np .sin (x )
@@ -7900,7 +7899,7 @@ def inverted(self):
79007899
79017900
79027901@image_comparison (['secondary_xy.png' ], style = 'mpl20' ,
7903- tol = 0.027 if platform .machine () == 'arm64 ' else 0 )
7902+ tol = 0.027 if platform .machine () != 'x86_64 ' else 0 )
79047903def test_secondary_xy ():
79057904 fig , axs = plt .subplots (1 , 2 , figsize = (10 , 5 ), constrained_layout = True )
79067905
@@ -9163,10 +9162,8 @@ def test_zorder_and_explicit_rasterization():
91639162 fig .savefig (b , format = 'pdf' )
91649163
91659164
9166- @image_comparison (
9167- ["preset_clip_paths.png" ],
9168- remove_text = True , style = "mpl20" ,
9169- tol = 0.027 if platform .machine () in ("aarch64" , "arm64" , "ppc64le" ) else 0 )
9165+ @image_comparison (["preset_clip_paths.png" ], remove_text = True , style = "mpl20" ,
9166+ tol = 0.027 if platform .machine () != 'x86_64' else 0 )
91709167def test_preset_clip_paths ():
91719168 fig , ax = plt .subplots ()
91729169
@@ -9500,7 +9497,7 @@ def test_boxplot_orientation(fig_test, fig_ref):
95009497
95019498
95029499@image_comparison (["use_colorizer_keyword.png" ],
9503- tol = 0.05 if platform .machine () == 'arm64 ' else 0 )
9500+ tol = 0.05 if platform .machine () != 'x86_64 ' else 0 )
95049501def test_use_colorizer_keyword ():
95059502 # test using the colorizer keyword
95069503 np .random .seed (0 )
0 commit comments