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

Skip to content

Commit ed6d3e6

Browse files
committed
Fix deprecated warnings and description in density
1 parent 03ad3d8 commit ed6d3e6

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
@@ -6815,7 +6815,7 @@ def hist2d(self, x, y, bins=10, range=None, density=None, weights=None,
68156815
considered outliers and not tallied in the histogram.
68166816
68176817
density : boolean, optional
6818-
If False, the default, returns the number of samples in each bin.
6818+
If False, the default, plots and returns the number of samples in each bin.
68196819
If True, returns the probability *density* function at the bin,
68206820
``bin_count / sample_count / bin_area``.
68216821
Default is ``None`` for both *normed* and *density*. If either is
@@ -6887,8 +6887,8 @@ def hist2d(self, x, y, bins=10, range=None, density=None, weights=None,
68876887
"simultaneously. Please only use 'density', "
68886888
"since 'normed' is deprecated.")
68896889
if normed is not None:
6890-
cbook.warn_deprecated("2.1", name="'normed'", obj_type="kwarg",
6891-
alternative="'density'", removal="3.1")
6890+
cbook.warn_deprecated("3.1", name="'normed'", obj_type="kwarg",
6891+
alternative="'density")
68926892

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

0 commit comments

Comments
 (0)