11import collections
22import inspect
3+ import platform
34from unittest import mock
45
56import numpy as np
@@ -107,6 +108,7 @@ def test_multiple_keys():
107108
108109
109110@image_comparison (baseline_images = ['rgba_alpha' ],
111+ tol = {'aarch64' : 0.02 }.get (platform .machine (), 0.0 ),
110112 extensions = ['png' ], remove_text = True )
111113def test_alpha_rgba ():
112114 import matplotlib .pyplot as plt
@@ -118,6 +120,7 @@ def test_alpha_rgba():
118120
119121
120122@image_comparison (baseline_images = ['rcparam_alpha' ],
123+ tol = {'aarch64' : 0.02 }.get (platform .machine (), 0.0 ),
121124 extensions = ['png' ], remove_text = True )
122125def test_alpha_rcparam ():
123126 import matplotlib .pyplot as plt
@@ -145,7 +148,8 @@ def test_fancy():
145148 ncol = 2 , shadow = True , title = "My legend" , numpoints = 1 )
146149
147150
148- @image_comparison (baseline_images = ['framealpha' ], remove_text = True )
151+ @image_comparison (baseline_images = ['framealpha' ], remove_text = True ,
152+ tol = {'aarch64' : 0.02 }.get (platform .machine (), 0.0 ))
149153def test_framealpha ():
150154 x = np .linspace (1 , 100 , 100 )
151155 y = x
0 commit comments