Skip to content

Commit 909269d

Browse files
authored
Merge pull request matplotlib#24165 from meeseeksmachine/auto-backport-of-pr-24164-on-v3.6.x
Backport PR matplotlib#24164 on branch v3.6.x (Fix argument order in hist() docstring.)
2 parents c519536 + 2a1958b commit 909269d

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
@@ -6432,7 +6432,7 @@ def hist(self, x, bins=None, range=None, density=False, weights=None,
64326432
`~.stairs` to plot the distribution::
64336433
64346434
counts, bins = np.histogram(x)
6435-
plt.stairs(bins, counts)
6435+
plt.stairs(counts, bins)
64366436
64376437
Alternatively, plot pre-computed bins and counts using ``hist()`` by
64386438
treating each bin as a single point with a weight equal to its count::

0 commit comments

Comments
 (0)