@@ -6845,7 +6845,8 @@ def hist(self, x, bins=None, range=None, density=None, weights=None,
68456845 return tops , bins , cbook .silent_list ('Lists of Patches' , patches )
68466846
68476847 @_preprocess_data (replace_names = ["x" , "y" , "weights" ])
6848- def hist2d (self , x , y , bins = 10 , range = None , normed = False , weights = None ,
6848+ @cbook ._rename_parameter ("3.1" , "normed" , "density" )
6849+ def hist2d (self , x , y , bins = 10 , range = None , density = False , weights = None ,
68496850 cmin = None , cmax = None , ** kwargs ):
68506851 """
68516852 Make a 2D histogram plot.
@@ -6879,8 +6880,9 @@ def hist2d(self, x, y, bins=10, range=None, normed=False, weights=None,
68796880 xmax], [ymin, ymax]]``. All values outside of this range will be
68806881 considered outliers and not tallied in the histogram.
68816882
6882- normed : bool, optional, default: False
6883- Normalize histogram.
6883+ density : bool, optional, default: False
6884+ Normalize histogram. *normed* is a deprecated synonym for this
6885+ parameter.
68846886
68856887 weights : array_like, shape (n, ), optional, default: None
68866888 An array of values w_i weighing each sample (x_i, y_i).
@@ -6939,7 +6941,7 @@ def hist2d(self, x, y, bins=10, range=None, normed=False, weights=None,
69396941 """
69406942
69416943 h , xedges , yedges = np .histogram2d (x , y , bins = bins , range = range ,
6942- normed = normed , weights = weights )
6944+ normed = density , weights = weights )
69436945
69446946 if cmin is not None :
69456947 h [h < cmin ] = None
0 commit comments