Skip to content

Commit e5744c0

Browse files
committed
Fix by Yannick Copin for hist autoscaling bug; closes issue matplotlib#841
1 parent 9b7abbf commit e5744c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)