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

Skip to content

Commit b2daa26

Browse files
committed
Fix deprecated warnings and description in density
1 parent 4021d56 commit b2daa26

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6813,7 +6813,7 @@ def hist2d(self, x, y, bins=10, range=None, density=None, weights=None,
68136813
considered outliers and not tallied in the histogram.
68146814
68156815
density : boolean, optional
6816-
If False, the default, returns the number of samples in each bin.
6816+
If False, the default, plots and returns the number of samples in each bin.
68176817
If True, returns the probability *density* function at the bin,
68186818
``bin_count / sample_count / bin_area``.
68196819
Default is ``None`` for both *normed* and *density*. If either is
@@ -6885,8 +6885,8 @@ def hist2d(self, x, y, bins=10, range=None, density=None, weights=None,
68856885
"simultaneously. Please only use 'density', "
68866886
"since 'normed' is deprecated.")
68876887
if normed is not None:
6888-
cbook.warn_deprecated("2.1", name="'normed'", obj_type="kwarg",
6889-
alternative="'density'", removal="3.1")
6888+
cbook.warn_deprecated("3.1", name="'normed'", obj_type="kwarg",
6889+
alternative="'density")
68906890

68916891
normed = bool(density) or bool(normed)
68926892
h, xedges, yedges = np.histogram2d(x, y, bins=bins, range=range,

0 commit comments

Comments
 (0)