Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 626c014

Browse files
committed
branch merge
2 parents 969919b + ce6ed74 commit 626c014

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6778,8 +6778,13 @@ def hist(self, x, bins=None, range=None, density=None, weights=None,
67786778
return tops, bins, cbook.silent_list('Lists of Patches', patches)
67796779

67806780
@_preprocess_data(replace_names=["x", "y", "weights"], label_namer=None)
6781+
<<<<<<< HEAD
67816782
def hist2d(self, x, y, bins=10, range=None, density=None,
67826783
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
67836788
"""
67846789
Make a 2D histogram plot.
67856790
@@ -6813,18 +6818,30 @@ def hist2d(self, x, y, bins=10, range=None, density=None,
68136818
considered outliers and not tallied in the histogram.
68146819
68156820
density : boolean, optional
6821+
<<<<<<< HEAD
68166822
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
68176826
If True, returns the probability *density* function at the bin,
68186827
``bin_count / sample_count / bin_area``.
68196828
68206829
Default is ``None`` for both *normed* and *density*. If either is
68216830
set, then that value will be used. If neither are set, then the
68226831
args will be treated as ``False``.
6832+
<<<<<<< HEAD
68236833
If both *density* and *normed* are set an error is raised.
68246834
68256835
normed : bool, optional, default: None
68266836
Deprecated; use the density keyword argument instead.
68276837
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
68286845
68296846
weights : array_like, shape (n, ), optional, default: None
68306847
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,
68836900
"""
68846901
if density is not None and normed is not None:
68856902
raise ValueError("kwargs 'density' and 'normed' cannot be used "
6903+
<<<<<<< HEAD
68866904
"simultaneously. Please only use 'density', "
68876905
"since 'normed' is deprecated.")
68886906
if normed is not None:
68896907
cbook.warn_deprecated("2.1", name="'normed'", obj_type="kwarg",
68906908
alternative="'density'", removal="3.1")
68916909

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
68926919
normed = bool(density) or bool(normed)
68936920
h, xedges, yedges = np.histogram2d(x, y, bins=bins, range=range,
68946921
normed=normed, weights=weights)

0 commit comments

Comments
 (0)