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

Skip to content

Commit 53fd0d3

Browse files
committed
Merge pull request #1392 from efiring/fix_hist_step
Fix by Yannick Copin for hist autoscaling bug; closes issue #841
2 parents 9b7abbf + e5744c0 commit 53fd0d3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8141,7 +8141,7 @@ def hist(self, x, bins=10, range=None, normed=False, weights=None,
81418141

81428142
x[0::2], x[1::2] = bins, bins
81438143

8144-
minimum = min(bins)
8144+
minimum = np.min(n)
81458145

81468146
if align == 'left' or align == 'center':
81478147
x -= 0.5*(bins[1]-bins[0])

0 commit comments

Comments
 (0)