@@ -6809,7 +6809,8 @@ def hist(self, x, bins=None, range=None, density=None, weights=None,
68096809 return tops , bins , cbook .silent_list ('Lists of Patches' , patches )
68106810
68116811 @_preprocess_data (replace_names = ["x" , "y" , "weights" ])
6812- def hist2d (self , x , y , bins = 10 , range = None , normed = False , weights = None ,
6812+ @cbook ._rename_parameter ("3.1" , "normed" , "density" )
6813+ def hist2d (self , x , y , bins = 10 , range = None , density = False , weights = None ,
68136814 cmin = None , cmax = None , ** kwargs ):
68146815 """
68156816 Make a 2D histogram plot.
@@ -6843,8 +6844,9 @@ def hist2d(self, x, y, bins=10, range=None, normed=False, weights=None,
68436844 xmax], [ymin, ymax]]``. All values outside of this range will be
68446845 considered outliers and not tallied in the histogram.
68456846
6846- normed : bool, optional, default: False
6847- Normalize histogram.
6847+ density : bool, optional, default: False
6848+ Normalize histogram. *normed* is a deprecated synonym for the
6849+ same functionality.
68486850
68496851 weights : array_like, shape (n, ), optional, default: None
68506852 An array of values w_i weighing each sample (x_i, y_i).
@@ -6903,7 +6905,7 @@ def hist2d(self, x, y, bins=10, range=None, normed=False, weights=None,
69036905 """
69046906
69056907 h , xedges , yedges = np .histogram2d (x , y , bins = bins , range = range ,
6906- normed = normed , weights = weights )
6908+ normed = density , weights = weights )
69076909
69086910 if cmin is not None :
69096911 h [h < cmin ] = None
0 commit comments