@@ -2996,24 +2996,21 @@ def test_hist_stacked_step():
2996
2996
ax .hist ((d1 , d2 ), histtype = "step" , stacked = True )
2997
2997
2998
2998
2999
- @image_comparison (baseline_images = ['hist_stacked_normed' ])
3000
- def test_hist_stacked_normed ():
3001
- # make some data
3002
- d1 = np .linspace (1 , 3 , 20 )
3003
- d2 = np .linspace (0 , 10 , 50 )
3004
- fig , ax = plt .subplots ()
3005
- with pytest .warns (UserWarning ):
3006
- ax .hist ((d1 , d2 ), stacked = True , normed = True )
3007
-
3008
-
3009
- @image_comparison (baseline_images = ['hist_stacked_normed' ], extensions = ['png' ])
2999
+ @image_comparison (baseline_images = ['hist_stacked_normed' ,
3000
+ 'hist_stacked_normed' ])
3010
3001
def test_hist_stacked_density ():
3011
3002
# make some data
3012
3003
d1 = np .linspace (1 , 3 , 20 )
3013
3004
d2 = np .linspace (0 , 10 , 50 )
3005
+
3014
3006
fig , ax = plt .subplots ()
3015
3007
ax .hist ((d1 , d2 ), stacked = True , density = True )
3016
3008
3009
+ # Also check that the old keyword works.
3010
+ fig , ax = plt .subplots ()
3011
+ with pytest .warns (UserWarning ):
3012
+ ax .hist ((d1 , d2 ), stacked = True , normed = True )
3013
+
3017
3014
3018
3015
@pytest .mark .parametrize ('normed' , [False , True ])
3019
3016
@pytest .mark .parametrize ('density' , [False , True ])
0 commit comments