Skip to content

Commit 9497fad

Browse files
committed
Merge branch 'improving-plt.hist-documentation'
2 parents 8ebc30c + 0a80ca6 commit 9497fad

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5307,8 +5307,9 @@ def hist(self, x, bins=10, range=None, normed=False, weights=None,
53075307
53085308
Parameters
53095309
----------
5310-
x : array_like, shape (n, )
5311-
Input values.
5310+
x : (n,) array or sequence of (n,) arrays
5311+
Input values, this takes either a single array or a sequency of
5312+
arrays which are not required to be of the same length
53125313
53135314
bins : integer or array_like, optional, default: 10
53145315
If an integer is given, `bins + 1` bin edges are returned,
@@ -5403,8 +5404,22 @@ def hist(self, x, bins=10, range=None, normed=False, weights=None,
54035404
54045405
Returns
54055406
-------
5406-
tuple : ``(n, bins, patches)`` or \
5407-
``([n0, n1, ...], bins, [patches0, patches1,...])``
5407+
n : array or list of arrays
5408+
The values of the histogram bins. See **normed** and **weights**
5409+
for a description of the possible semantics. If input **x** is an
5410+
array, then this is an array of length **nbins**. If input is a
5411+
sequence arrays ``[data1, data2,..]``, then this is a list of
5412+
arrays with the values of the histograms for each of the arrays
5413+
in the same order.
5414+
5415+
bins : array
5416+
The edges of the bins. Length nbins + 1 (nbins left edges and right
5417+
edge of last bin). Always a single array even when multiple data
5418+
sets are passed in.
5419+
5420+
patches : list or list of lists
5421+
Silent list of individual patches used to create the histogram
5422+
or list of such list if multiple input datasets.
54085423
54095424
Other Parameters
54105425
----------------

0 commit comments

Comments
 (0)