@@ -11,7 +11,7 @@ def draw_arrow(ax, t, r):
1111 fc = "b" , ec = 'k' ))
1212
1313
14- @image_comparison (baseline_images = ['fancyarrow_test_image' ])
14+ @image_comparison (['fancyarrow_test_image' ])
1515def test_fancyarrow ():
1616 # Added 0 to test division by zero error described in issue 3930
1717 r = [0.4 , 0.3 , 0.2 , 0.1 , 0 ]
@@ -28,7 +28,7 @@ def test_fancyarrow():
2828 ax .tick_params (labelleft = False , labelbottom = False )
2929
3030
31- @image_comparison (baseline_images = ['boxarrow_test_image' ], extensions = [ ' png' ])
31+ @image_comparison (['boxarrow_test_image. png' ])
3232def test_boxarrow ():
3333
3434 styles = mpatches .BoxStyle .get_styles ()
@@ -67,8 +67,7 @@ def __prepare_fancyarrow_dpi_cor_test():
6767 return fig2
6868
6969
70- @image_comparison (baseline_images = ['fancyarrow_dpi_cor_100dpi' ],
71- remove_text = True , extensions = ['png' ],
70+ @image_comparison (['fancyarrow_dpi_cor_100dpi.png' ], remove_text = True ,
7271 tol = {'aarch64' : 0.02 }.get (platform .machine (), 0.0 ),
7372 savefig_kwarg = dict (dpi = 100 ))
7473def test_fancyarrow_dpi_cor_100dpi ():
@@ -83,8 +82,7 @@ def test_fancyarrow_dpi_cor_100dpi():
8382 __prepare_fancyarrow_dpi_cor_test ()
8483
8584
86- @image_comparison (baseline_images = ['fancyarrow_dpi_cor_200dpi' ],
87- remove_text = True , extensions = ['png' ],
85+ @image_comparison (['fancyarrow_dpi_cor_200dpi.png' ], remove_text = True ,
8886 tol = {'aarch64' : 0.02 }.get (platform .machine (), 0.0 ),
8987 savefig_kwarg = dict (dpi = 200 ))
9088def test_fancyarrow_dpi_cor_200dpi ():
@@ -96,9 +94,7 @@ def test_fancyarrow_dpi_cor_200dpi():
9694 __prepare_fancyarrow_dpi_cor_test ()
9795
9896
99- @image_comparison (baseline_images = ['fancyarrow_dash' ],
100- remove_text = True , extensions = ['png' ],
101- style = 'default' )
97+ @image_comparison (['fancyarrow_dash.png' ], remove_text = True , style = 'default' )
10298def test_fancyarrow_dash ():
10399 from matplotlib .patches import FancyArrowPatch
104100 fig , ax = plt .subplots ()
@@ -122,8 +118,7 @@ def test_fancyarrow_dash():
122118 ax .add_patch (e2 )
123119
124120
125- @image_comparison (baseline_images = ['arrow_styles' ], extensions = ['png' ],
126- style = 'mpl20' , remove_text = True )
121+ @image_comparison (['arrow_styles.png' ], style = 'mpl20' , remove_text = True )
127122def test_arrow_styles ():
128123 styles = mpatches .ArrowStyle .get_styles ()
129124
@@ -139,8 +134,7 @@ def test_arrow_styles():
139134 ax .add_patch (patch )
140135
141136
142- @image_comparison (baseline_images = ['connection_styles' ], extensions = ['png' ],
143- style = 'mpl20' , remove_text = True )
137+ @image_comparison (['connection_styles.png' ], style = 'mpl20' , remove_text = True )
144138def test_connection_styles ():
145139 styles = mpatches .ConnectionStyle .get_styles ()
146140
0 commit comments