Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion lib/matplotlib/axes/_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -6051,6 +6051,9 @@ def hist(self, x, bins=None, range=None, density=None, weights=None,

Default is ``False``

normed : bool, optional
Deprecated; use the density keyword argument instead.

Returns
-------
n : array or list of arrays
Expand Down Expand Up @@ -6108,11 +6111,14 @@ def hist(self, x, bins=None, range=None, density=None, weights=None,
if histtype == 'barstacked' and not stacked:
stacked = True

if normed is not None:
warnings.warn("The 'normed' kwarg is deprecated, and has been "
"replaced by the 'density' kwarg.")
if density is not None and normed is not None:
raise ValueError("kwargs 'density' and 'normed' cannot be used "
"simultaneously. "
"Please only use 'density', since 'normed'"
"will be deprecated.")
"is deprecated.")

# basic input validation
input_empty = np.size(x) == 0
Expand Down