Skip to content

Commit d6a8e5f

Browse files
committed
Adjust some doc of hist in pyplot
Tries to introduce the suggestions of Thomas in matplotlib#6386.
1 parent f1d075b commit d6a8e5f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5801,11 +5801,11 @@ def hist(self, x, bins=None, range=None, normed=False, weights=None,
58015801
normed : boolean, optional
58025802
If `True`, the first element of the return tuple will
58035803
be the counts normalized to form a probability density, i.e.,
5804-
the integral of the histogram will sum to 1. So, the normalized
5805-
count *is not* the count in a bin divided by the total number
5806-
of observations, but it is the count in the bin divided by the
5807-
number of observations times the bin width. If `stacked` is
5808-
also `True`, the sum of the histograms is normalized to 1.
5804+
the area (or integral) under the histogram will sum to 1.
5805+
This is achieved dividing the count by the number of observations
5806+
times the bin width and *not* dividing by the total number
5807+
of observations. If `stacked` is also `True`, the sum of the
5808+
histograms is normalized to 1.
58095809
58105810
Default is ``False``
58115811

0 commit comments

Comments
 (0)