@@ -2913,24 +2913,21 @@ def test_hist_stacked_step():
2913
2913
ax .hist ((d1 , d2 ), histtype = "step" , stacked = True )
2914
2914
2915
2915
2916
- @image_comparison (baseline_images = ['hist_stacked_normed' ])
2917
- def test_hist_stacked_normed ():
2918
- # make some data
2919
- d1 = np .linspace (1 , 3 , 20 )
2920
- d2 = np .linspace (0 , 10 , 50 )
2921
- fig , ax = plt .subplots ()
2922
- with pytest .warns (UserWarning ):
2923
- ax .hist ((d1 , d2 ), stacked = True , normed = True )
2924
-
2925
-
2926
- @image_comparison (baseline_images = ['hist_stacked_normed' ], extensions = ['png' ])
2916
+ @image_comparison (baseline_images = ['hist_stacked_normed' ,
2917
+ 'hist_stacked_normed' ])
2927
2918
def test_hist_stacked_density ():
2928
2919
# make some data
2929
2920
d1 = np .linspace (1 , 3 , 20 )
2930
2921
d2 = np .linspace (0 , 10 , 50 )
2922
+
2931
2923
fig , ax = plt .subplots ()
2932
2924
ax .hist ((d1 , d2 ), stacked = True , density = True )
2933
2925
2926
+ # Also check that the old keyword works.
2927
+ fig , ax = plt .subplots ()
2928
+ with pytest .warns (UserWarning ):
2929
+ ax .hist ((d1 , d2 ), stacked = True , normed = True )
2930
+
2934
2931
2935
2932
@pytest .mark .parametrize ('normed' , [False , True ])
2936
2933
@pytest .mark .parametrize ('density' , [False , True ])
0 commit comments