Skip to content

Commit 5546eee

Browse files
committed
MNT: update pyplot.hist for changes to Axes.hist
This change is from #8993
1 parent e078f91 commit 5546eee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/matplotlib/pyplot.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -2992,10 +2992,10 @@ def hexbin(x, y, C=None, gridsize=100, bins=None, xscale='linear',
29922992
# This function was autogenerated by boilerplate.py. Do not edit as
29932993
# changes will be lost
29942994
@_autogen_docstring(Axes.hist)
2995-
def hist(x, bins=None, range=None, normed=False, weights=None, cumulative=False,
2995+
def hist(x, bins=None, range=None, density=None, weights=None, cumulative=False,
29962996
bottom=None, histtype='bar', align='mid', orientation='vertical',
29972997
rwidth=None, log=False, color=None, label=None, stacked=False,
2998-
hold=None, data=None, **kwargs):
2998+
normed=None, hold=None, data=None, **kwargs):
29992999
ax = gca()
30003000
# Deprecated: allow callers to override the hold state
30013001
# by passing hold=True|False
@@ -3007,11 +3007,11 @@ def hist(x, bins=None, range=None, normed=False, weights=None, cumulative=False,
30073007
warnings.warn("The 'hold' keyword argument is deprecated since 2.0.",
30083008
mplDeprecation)
30093009
try:
3010-
ret = ax.hist(x, bins=bins, range=range, normed=normed,
3010+
ret = ax.hist(x, bins=bins, range=range, density=density,
30113011
weights=weights, cumulative=cumulative, bottom=bottom,
30123012
histtype=histtype, align=align, orientation=orientation,
30133013
rwidth=rwidth, log=log, color=color, label=label,
3014-
stacked=stacked, data=data, **kwargs)
3014+
stacked=stacked, normed=normed, data=data, **kwargs)
30153015
finally:
30163016
ax._hold = washold
30173017

0 commit comments

Comments
 (0)