@@ -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 )
@@ -1727,7 +1726,8 @@ def test_pcolorauto(fig_test, fig_ref, snap):
17271726 ax .pcolormesh (x2 , y2 , Z , snap = snap )
17281727
17291728
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 )
17311731def test_canonical ():
17321732 fig , ax = plt .subplots ()
17331733 ax .plot ([1 , 2 , 3 ])
@@ -2652,9 +2652,8 @@ def test_contour_hatching():
26522652 extend = 'both' , alpha = 0.5 )
26532653
26542654
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 )
26582657def test_contour_colorbar ():
26592658 x , y , z = contour_dat ()
26602659
@@ -3232,7 +3231,7 @@ def test_log_scales_invalid():
32323231
32333232
32343233@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 )
32363235def test_stackplot ():
32373236 fig = plt .figure ()
32383237 x = np .linspace (0 , 10 , 10 )
@@ -5126,7 +5125,7 @@ def test_marker_styles():
51265125
51275126
51285127@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 )
51305129def test_markers_fillstyle_rcparams ():
51315130 fig , ax = plt .subplots ()
51325131 x = np .arange (7 )
@@ -5709,7 +5708,7 @@ def test_twin_remove(fig_test, fig_ref):
57095708
57105709
57115710@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 )
57135712def test_twin_spines ():
57145713
57155714 def make_patch_spines_invisible (ax ):
@@ -6306,7 +6305,7 @@ def test_pie_hatch_multi(fig_test, fig_ref):
63066305
63076306
63086307@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 )
63106309def test_set_get_ticklabels ():
63116310 # test issue 2246
63126311 fig , ax = plt .subplots (2 )
@@ -6899,7 +6898,7 @@ def test_loglog():
68996898
69006899
69016900@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 )
69036902def test_loglog_nonpos ():
69046903 fig , axs = plt .subplots (3 , 3 )
69056904 x = np .arange (1 , 11 )
@@ -7839,7 +7838,7 @@ def test_scatter_empty_data():
78397838
78407839
78417840@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 )
78437842def test_annotate_across_transforms ():
78447843 x = np .linspace (0 , 10 , 200 )
78457844 y = np .exp (- x ) * np .sin (x )
@@ -7870,7 +7869,7 @@ def inverted(self):
78707869
78717870
78727871@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 )
78747873def test_secondary_xy ():
78757874 fig , axs = plt .subplots (1 , 2 , figsize = (10 , 5 ), constrained_layout = True )
78767875
@@ -9134,7 +9133,7 @@ def test_zorder_and_explicit_rasterization():
91349133
91359134
91369135@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 )
91389137def test_preset_clip_paths ():
91399138 fig , ax = plt .subplots ()
91409139
@@ -9467,7 +9466,7 @@ def test_boxplot_orientation(fig_test, fig_ref):
94679466
94689467
94699468@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 )
94719470def test_use_colorizer_keyword ():
94729471 # test using the colorizer keyword
94739472 np .random .seed (0 )
0 commit comments