Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 53fd0d3

Browse filesBrowse 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
Copy full SHA for 53fd0d3

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎lib/matplotlib/axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.