@@ -59,7 +59,9 @@ def test_divider_append_axes():
59
59
assert bboxes ["top" ].x1 == bboxes ["main" ].x1 == bboxes ["bottom" ].x1
60
60
61
61
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' ))
63
65
def test_twin_axes_empty_and_removed ():
64
66
# Purely cosmetic font changes (avoid overlap)
65
67
mpl .rcParams .update (
@@ -321,7 +323,9 @@ def test_fill_facecolor():
321
323
mark_inset (ax [3 ], axins , loc1 = 2 , loc2 = 4 , fc = "g" , ec = "0.5" , fill = False )
322
324
323
325
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' ))
325
329
def test_zooming_with_inverted_axes ():
326
330
fig , ax = plt .subplots ()
327
331
ax .plot ([1 , 2 , 3 ], [1 , 2 , 3 ])
@@ -336,8 +340,10 @@ def test_zooming_with_inverted_axes():
336
340
inset_ax .axis ([1.4 , 1.1 , 1.4 , 1.1 ])
337
341
338
342
343
+ # Update style when regenerating the test image
339
344
@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' ))
341
347
def test_anchored_direction_arrows ():
342
348
fig , ax = plt .subplots ()
343
349
ax .imshow (np .zeros ((10 , 10 )), interpolation = 'nearest' )
@@ -346,7 +352,9 @@ def test_anchored_direction_arrows():
346
352
ax .add_artist (simple_arrow )
347
353
348
354
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' ))
350
358
def test_anchored_direction_arrows_many_args ():
351
359
fig , ax = plt .subplots ()
352
360
ax .imshow (np .ones ((10 , 10 )))
@@ -618,7 +626,9 @@ def test_auto_adjustable():
618
626
assert tbb .y1 == pytest .approx (fig .bbox .height - pad * fig .dpi )
619
627
620
628
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' ))
622
632
def test_rgb_axes ():
623
633
fig = plt .figure ()
624
634
ax = RGBAxes (fig , (0.1 , 0.1 , 0.8 , 0.8 ), pad = 0.1 )
@@ -629,7 +639,9 @@ def test_rgb_axes():
629
639
ax .imshow_rgb (r , g , b , interpolation = 'none' )
630
640
631
641
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' ))
633
645
def test_insetposition ():
634
646
fig , ax = plt .subplots (figsize = (2 , 2 ))
635
647
ax_ins = plt .axes ([0 , 0 , 1 , 1 ])
0 commit comments