Skip to content

Commit 1f9dc78

Browse files
authored
Merge pull request #24164 from carschno/fix_hist_docstring
Fix argument order in hist() docstring.
2 parents f0cd8de + 8dba908 commit 1f9dc78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6466,7 +6466,7 @@ def hist(self, x, bins=None, range=None, density=False, weights=None,
64666466
`~.stairs` to plot the distribution::
64676467
64686468
counts, bins = np.histogram(x)
6469-
plt.stairs(bins, counts)
6469+
plt.stairs(counts, bins)
64706470
64716471
Alternatively, plot pre-computed bins and counts using ``hist()`` by
64726472
treating each bin as a single point with a weight equal to its count::

0 commit comments

Comments
 (0)