@@ -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 )
@@ -5211,7 +5210,7 @@ def test_marker_styles():
52115210
52125211
52135212@image_comparison (['rc_markerfill.png' ],
5214- tol = 0.037 if platform .machine () == 'arm64 ' else 0 )
5213+ tol = 0 if platform .machine () == 'x86_64 ' else 0.037 )
52155214def test_markers_fillstyle_rcparams ():
52165215 fig , ax = plt .subplots ()
52175216 x = np .arange (7 )
@@ -5794,7 +5793,7 @@ def test_twin_remove(fig_test, fig_ref):
57945793
57955794
57965795@image_comparison (['twin_spines.png' ], remove_text = True ,
5797- tol = 0.022 if platform .machine () == 'arm64 ' else 0 )
5796+ tol = 0 if platform .machine () == 'x86_64 ' else 0.022 )
57985797def test_twin_spines ():
57995798
58005799 def make_patch_spines_invisible (ax ):
@@ -6391,7 +6390,7 @@ def test_pie_hatch_multi(fig_test, fig_ref):
63916390
63926391
63936392@image_comparison (['set_get_ticklabels.png' ],
6394- tol = 0.025 if platform .machine () == 'arm64 ' else 0 )
6393+ tol = 0 if platform .machine () == 'x86_64 ' else 0.025 )
63956394def test_set_get_ticklabels ():
63966395 # test issue 2246
63976396 fig , ax = plt .subplots (2 )
@@ -6984,7 +6983,7 @@ def test_loglog():
69846983
69856984
69866985@image_comparison (["test_loglog_nonpos.png" ], remove_text = True , style = 'mpl20' ,
6987- tol = 0.029 if platform .machine () == 'arm64 ' else 0 )
6986+ tol = 0 if platform .machine () == 'x86_64 ' else 0.029 )
69886987def test_loglog_nonpos ():
69896988 fig , axs = plt .subplots (3 , 3 )
69906989 x = np .arange (1 , 11 )
@@ -7953,7 +7952,7 @@ def test_scatter_empty_data():
79537952
79547953
79557954@image_comparison (['annotate_across_transforms.png' ], style = 'mpl20' , remove_text = True ,
7956- tol = 0.025 if platform .machine () == 'arm64 ' else 0 )
7955+ tol = 0 if platform .machine () == 'x86_64 ' else 0.025 )
79577956def test_annotate_across_transforms ():
79587957 x = np .linspace (0 , 10 , 200 )
79597958 y = np .exp (- x ) * np .sin (x )
@@ -7984,7 +7983,7 @@ def inverted(self):
79847983
79857984
79867985@image_comparison (['secondary_xy.png' ], style = 'mpl20' ,
7987- tol = 0.027 if platform .machine () == 'arm64 ' else 0 )
7986+ tol = 0 if platform .machine () == 'x86_64 ' else 0.027 )
79887987def test_secondary_xy ():
79897988 fig , axs = plt .subplots (1 , 2 , figsize = (10 , 5 ), constrained_layout = True )
79907989
@@ -9247,10 +9246,8 @@ def test_zorder_and_explicit_rasterization():
92479246 fig .savefig (b , format = 'pdf' )
92489247
92499248
9250- @image_comparison (
9251- ["preset_clip_paths.png" ],
9252- remove_text = True , style = "mpl20" ,
9253- tol = 0.027 if platform .machine () in ("aarch64" , "arm64" , "ppc64le" ) else 0 )
9249+ @image_comparison (["preset_clip_paths.png" ], remove_text = True , style = "mpl20" ,
9250+ tol = 0 if platform .machine () == 'x86_64' else 0.027 )
92549251def test_preset_clip_paths ():
92559252 fig , ax = plt .subplots ()
92569253
@@ -9584,7 +9581,7 @@ def test_boxplot_orientation(fig_test, fig_ref):
95849581
95859582
95869583@image_comparison (["use_colorizer_keyword.png" ],
9587- tol = 0.05 if platform .machine () == 'arm64 ' else 0 )
9584+ tol = 0 if platform .machine () == 'x86_64 ' else 0.05 )
95889585def test_use_colorizer_keyword ():
95899586 # test using the colorizer keyword
95909587 np .random .seed (0 )
0 commit comments