Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d6eb4f4

Browse filesBrowse files
committed
Deprecate 'normed' kwarg to hist
1 parent d046efb commit d6eb4f4
Copy full SHA for d6eb4f4

File tree

Expand file treeCollapse file tree

1 file changed

+7
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-1
lines changed

‎lib/matplotlib/axes/_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_axes.py
+7-1Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6051,6 +6051,9 @@ def hist(self, x, bins=None, range=None, density=None, weights=None,
60516051
60526052
Default is ``False``
60536053
6054+
normed : bool, optional
6055+
Deprecated; use the density keyword argument instead.
6056+
60546057
Returns
60556058
-------
60566059
n : array or list of arrays
@@ -6108,11 +6111,14 @@ def hist(self, x, bins=None, range=None, density=None, weights=None,
61086111
if histtype == 'barstacked' and not stacked:
61096112
stacked = True
61106113

6114+
if normed is not None:
6115+
warnings.warm("The 'normed' kwarg is deprecated, and has been "
6116+
"replaced by the 'density' kwarg.")
61116117
if density is not None and normed is not None:
61126118
raise ValueError("kwargs 'density' and 'normed' cannot be used "
61136119
"simultaneously. "
61146120
"Please only use 'density', since 'normed'"
6115-
"will be deprecated.")
6121+
"is deprecated.")
61166122

61176123
# basic input validation
61186124
input_empty = np.size(x) == 0

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.