@@ -8863,38 +8863,28 @@ def test_axhvlinespan_interpolation():
8863
8863
ax .axhspan (.6 , .7 , .8 , .9 , fc = "C2" , alpha = .5 )
8864
8864
8865
8865
8866
- @check_figures_equal ( )
8867
- def test_bar_hatchcolor_with_facecolor_and_edgecolor (fig_test , fig_ref ):
8866
+ @image_comparison ([ "bar_hatchcolor_with_facecolor_and_edgecolor" ] )
8867
+ def test_bar_hatchcolor_with_facecolor_and_edgecolor ():
8868
8868
8869
8869
x = [2 , 3 , 4 , 5 ]
8870
8870
y = [1 , 3 , 1 , 4 ]
8871
8871
8872
- ax1 = fig_test .subplots ()
8873
- ax1 .bar (x , y , hatch = "////" , facecolor = (0 , 0 , 0 , 0 ),
8872
+ fig , ax = plt .subplots ()
8873
+ ax .bar (x , y , hatch = "////" , facecolor = (0 , 0 , 0 , 0 ),
8874
8874
hatchcolor = "red" , edgecolor = "black" )
8875
8875
8876
- ax2 = fig_ref .subplots ()
8877
- ax2 .bar (x , y , hatch = "////" , facecolor = (0 , 0 , 0 , 0 ),
8878
- edgecolor = "black" , hatchcolor = "red" )
8879
-
8880
8876
8881
- @check_figures_equal ( )
8882
- def test_bar_hatchcolor_with_facecolor (fig_test , fig_ref ):
8877
+ @image_comparison ([ "bar_hatchcolor_with_facecolor" ] )
8878
+ def test_bar_hatchcolor_with_facecolor ():
8883
8879
x = [6 , 7 , 8 , 9 ]
8884
8880
y = [2 , 4 , 7 , 3 ]
8885
- ax1 = fig_test .subplots ()
8886
- ax1 .bar (x , y , hatch = "////" , hatchcolor = "green" , facecolor = (0 , 0 , 0 , 0 ))
8887
-
8888
- ax2 = fig_ref .subplots ()
8889
- ax2 .bar (x , y , hatch = "////" , facecolor = (0 , 0 , 0 , 0 ), hatchcolor = "green" )
8881
+ fig , ax = plt .subplots ()
8882
+ ax .bar (x , y , hatch = "////" , hatchcolor = "green" , facecolor = (0 , 0 , 0 , 0 ))
8890
8883
8891
8884
8892
- @check_figures_equal ( )
8893
- def test_bar_hatchcolor (fig_test , fig_ref ):
8885
+ @image_comparison ([ "bar_hatchcolor" ] )
8886
+ def test_bar_hatchcolor ():
8894
8887
x = [4 , 7 , 19 , 8 ]
8895
8888
y = [1 , 5 , 8 , 14 ]
8896
- ax1 = fig_test .subplots ()
8897
- ax1 .bar (x , y , hatch = "////" , hatchcolor = "orange" )
8898
-
8899
- ax2 = fig_ref .subplots ()
8900
- ax2 .bar (x , y , hatch = "////" , hatchcolor = "orange" )
8889
+ fig , ax = plt .subplots ()
8890
+ ax .bar (x , y , hatch = "////" , hatchcolor = "orange" )
0 commit comments