Skip to content

Commit 2526b4d

Browse files
Add note about hist speed for large number of bins
1 parent 46c4585 commit 2526b4d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/matplotlib/axes/_axes.py

+5
Original file line numberDiff line numberDiff line change
@@ -6540,6 +6540,11 @@ def hist(self, x, bins=None, range=None, density=False, weights=None,
65406540
--------
65416541
hist2d : 2D histograms
65426542
6543+
Notes
6544+
-----
6545+
For large numbers of bins (>1000), 'step' and 'stepfilled' can be
6546+
significantly faster than 'bar' and 'barstacked'.
6547+
65436548
"""
65446549
# Avoid shadowing the builtin.
65456550
bin_range = range

0 commit comments

Comments
 (0)