@@ -59,7 +59,9 @@ def test_divider_append_axes():
5959 assert bboxes ["top" ].x1 == bboxes ["main" ].x1 == bboxes ["bottom" ].x1
6060
6161
62- @image_comparison (['twin_axes_empty_and_removed' ], extensions = ["png" ], tol = 1 )
62+ # Update style when regenerating the test image
63+ @image_comparison (['twin_axes_empty_and_removed' ], extensions = ["png" ], tol = 1 ,
64+ style = ('classic' , '_classic_test_patch' ))
6365def test_twin_axes_empty_and_removed ():
6466 # Purely cosmetic font changes (avoid overlap)
6567 mpl .rcParams .update (
@@ -321,7 +323,9 @@ def test_fill_facecolor():
321323 mark_inset (ax [3 ], axins , loc1 = 2 , loc2 = 4 , fc = "g" , ec = "0.5" , fill = False )
322324
323325
324- @image_comparison (['zoomed_axes.png' , 'inverted_zoomed_axes.png' ])
326+ # Update style when regenerating the test image
327+ @image_comparison (['zoomed_axes.png' , 'inverted_zoomed_axes.png' ],
328+ style = ('classic' , '_classic_test_patch' ))
325329def test_zooming_with_inverted_axes ():
326330 fig , ax = plt .subplots ()
327331 ax .plot ([1 , 2 , 3 ], [1 , 2 , 3 ])
@@ -336,8 +340,10 @@ def test_zooming_with_inverted_axes():
336340 inset_ax .axis ([1.4 , 1.1 , 1.4 , 1.1 ])
337341
338342
343+ # Update style when regenerating the test image
339344@image_comparison (['anchored_direction_arrows.png' ],
340- tol = 0 if platform .machine () == 'x86_64' else 0.01 )
345+ tol = 0 if platform .machine () == 'x86_64' else 0.01 ,
346+ style = ('classic' , '_classic_test_patch' ))
341347def test_anchored_direction_arrows ():
342348 fig , ax = plt .subplots ()
343349 ax .imshow (np .zeros ((10 , 10 )), interpolation = 'nearest' )
@@ -346,7 +352,9 @@ def test_anchored_direction_arrows():
346352 ax .add_artist (simple_arrow )
347353
348354
349- @image_comparison (['anchored_direction_arrows_many_args.png' ])
355+ # Update style when regenerating the test image
356+ @image_comparison (['anchored_direction_arrows_many_args.png' ],
357+ style = ('classic' , '_classic_test_patch' ))
350358def test_anchored_direction_arrows_many_args ():
351359 fig , ax = plt .subplots ()
352360 ax .imshow (np .ones ((10 , 10 )))
@@ -618,7 +626,9 @@ def test_auto_adjustable():
618626 assert tbb .y1 == pytest .approx (fig .bbox .height - pad * fig .dpi )
619627
620628
621- @image_comparison (['rgb_axes.png' ], remove_text = True )
629+ # Update style when regenerating the test image
630+ @image_comparison (['rgb_axes.png' ], remove_text = True ,
631+ style = ('classic' , '_classic_test_patch' ))
622632def test_rgb_axes ():
623633 fig = plt .figure ()
624634 ax = RGBAxes (fig , (0.1 , 0.1 , 0.8 , 0.8 ), pad = 0.1 )
@@ -629,7 +639,9 @@ def test_rgb_axes():
629639 ax .imshow_rgb (r , g , b , interpolation = 'none' )
630640
631641
632- @image_comparison (['insetposition.png' ], remove_text = True )
642+ # Update style when regenerating the test image
643+ @image_comparison (['insetposition.png' ], remove_text = True ,
644+ style = ('classic' , '_classic_test_patch' ))
633645def test_insetposition ():
634646 fig , ax = plt .subplots (figsize = (2 , 2 ))
635647 ax_ins = plt .axes ([0 , 0 , 1 , 1 ])
0 commit comments