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

Skip to content

Commit bc44e3e

Browse files
committed
Schedule a removal date for passing normed (instead of density) to hist.
I'll give it one more minor release as there was no scheduled removal date...
1 parent e1c9ec5 commit bc44e3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6175,8 +6175,8 @@ def hist(self, x, bins=None, range=None, density=None, weights=None,
61756175
"Please only use 'density', since 'normed'"
61766176
"is deprecated.")
61776177
if normed is not None:
6178-
warnings.warn("The 'normed' kwarg is deprecated, and has been "
6179-
"replaced by the 'density' kwarg.")
6178+
cbook.warn_deprecated("2.1", name="'normed'", obj_type="kwarg",
6179+
alternative="'density'", removal="3.1")
61806180

61816181
# basic input validation
61826182
input_empty = np.size(x) == 0

0 commit comments

Comments
 (0)