@@ -2775,7 +2775,8 @@ def test_hist_stacked_normed():
27752775 ax = fig .add_subplot (111 )
27762776 ax .hist ((d1 , d2 ), stacked = True , normed = True )
27772777
2778- @image_comparison (baseline_images = ['hist_stacked_normed' ])
2778+
2779+ @image_comparison (baseline_images = ['hist_stacked_normed' ], extensions = ['png' ])
27792780def test_hist_stacked_density ():
27802781 # make some data
27812782 d1 = np .linspace (1 , 3 , 20 )
@@ -2786,12 +2787,12 @@ def test_hist_stacked_density():
27862787
27872788
27882789def test_hist_normed_density ():
2789- #Normed and density should not be used simultaneously
2790+ # Normed and density should not be used simultaneously
27902791 d1 = np .linspace (1 , 3 , 20 )
27912792 d2 = np .linspace (0 , 10 , 50 )
27922793 fig = plt .figure ()
27932794 ax = fig .add_subplot (111 )
2794- #test that kwargs normed and density cannot be set both.
2795+ # test that kwargs normed and density cannot be set both.
27952796 with pytest .raises (Exception ):
27962797 ax .hist ((d1 , d2 ), stacked = True , normed = True , density = True )
27972798
@@ -2805,7 +2806,6 @@ def test_hist_normed_density():
28052806 ax .hist ((d1 , d2 ), stacked = True , normed = True , density = False )
28062807
28072808
2808-
28092809def test_hist_stacked_density ():
28102810 # make some data
28112811 d1 = np .linspace (1 , 3 , 20 )
0 commit comments