@@ -6778,8 +6778,13 @@ def hist(self, x, bins=None, range=None, density=None, weights=None,
6778
6778
return tops , bins , cbook .silent_list ('Lists of Patches' , patches )
6779
6779
6780
6780
@_preprocess_data (replace_names = ["x" , "y" , "weights" ], label_namer = None )
6781
+ < << << << HEAD
6781
6782
def hist2d (self , x , y , bins = 10 , range = None , density = None ,
6782
6783
weights = None , cmin = None , cmax = None , normed = None , ** kwargs ):
6784
+ == == == =
6785
+ def hist2d (self , x , y , bins = 10 , range = None , density = None , normed = None , weights = None ,
6786
+ cmin = None , cmax = None , ** kwargs ):
6787
+ >> >> >> > ce6ed74e991532310f6b9865f1f4e2eae4da639b
6783
6788
"""
6784
6789
Make a 2D histogram plot.
6785
6790
@@ -6813,18 +6818,30 @@ def hist2d(self, x, y, bins=10, range=None, density=None,
6813
6818
considered outliers and not tallied in the histogram.
6814
6819
6815
6820
density : boolean, optional
6821
+ <<<<<<< HEAD
6816
6822
If False, the default, returns the number of samples in each bin.
6823
+ =======
6824
+ If False, the default, returns the number of samples in each bin.
6825
+ >>>>>>> ce6ed74e991532310f6b9865f1f4e2eae4da639b
6817
6826
If True, returns the probability *density* function at the bin,
6818
6827
``bin_count / sample_count / bin_area``.
6819
6828
6820
6829
Default is ``None`` for both *normed* and *density*. If either is
6821
6830
set, then that value will be used. If neither are set, then the
6822
6831
args will be treated as ``False``.
6832
+ <<<<<<< HEAD
6823
6833
If both *density* and *normed* are set an error is raised.
6824
6834
6825
6835
normed : bool, optional, default: None
6826
6836
Deprecated; use the density keyword argument instead.
6827
6837
6838
+ =======
6839
+ If both *density* and *normed* are set an error is raised.
6840
+
6841
+ normed : bool, optional, default: None
6842
+ Deprecated; use the density keyword argument instead.
6843
+
6844
+ >>>>>>> ce6ed74e991532310f6b9865f1f4e2eae4da639b
6828
6845
6829
6846
weights : array_like, shape (n, ), optional, default: None
6830
6847
An array of values w_i weighing each sample (x_i, y_i).
@@ -6883,12 +6900,22 @@ def hist2d(self, x, y, bins=10, range=None, density=None,
6883
6900
"""
6884
6901
if density is not None and normed is not None :
6885
6902
raise ValueError ("kwargs 'density' and 'normed' cannot be used "
6903
+ << < << << HEAD
6886
6904
"simultaneously. Please only use 'density', "
6887
6905
"since 'normed' is deprecated." )
6888
6906
if normed is not None :
6889
6907
cbook .warn_deprecated ("2.1" , name = "'normed'" , obj_type = "kwarg" ,
6890
6908
alternative = "'density'" , removal = "3.1" )
6891
6909
6910
+ == == == =
6911
+ "simultaneously. "
6912
+ "Please only use 'density', since 'normed'"
6913
+ "is deprecated." )
6914
+ if normed is not None :
6915
+ cbook .warn_deprecated ("2.1" , name = "'normed'" , obj_type = "kwarg" ,
6916
+ alternative = "'density'" , removal = "3.1" )
6917
+
6918
+ > >> >> >> ce6ed74e991532310f6b9865f1f4e2eae4da639b
6892
6919
normed = bool (density ) or bool (normed )
6893
6920
h , xedges , yedges = np .histogram2d (x , y , bins = bins , range = range ,
6894
6921
normed = normed , weights = weights )
0 commit comments