Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c178929

Browse files
authored
Merge pull request #15375 from EJEP/note_hist_speed
Add note to hist docstring about speed
2 parents f7e7e46 + 2526b4d commit c178929

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6603,6 +6603,11 @@ def hist(self, x, bins=None, range=None, density=False, weights=None,
66036603
--------
66046604
hist2d : 2D histograms
66056605
6606+
Notes
6607+
-----
6608+
For large numbers of bins (>1000), 'step' and 'stepfilled' can be
6609+
significantly faster than 'bar' and 'barstacked'.
6610+
66066611
"""
66076612
# Avoid shadowing the builtin.
66086613
bin_range = range

0 commit comments

Comments
 (0)