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 e6a9145

Browse filesBrowse files
keflavichdmcdougall
authored andcommitted
Implemented fix to issue 196 on github for log=True and histtype='step'
1 parent 527fd07 commit e6a9145
Copy full SHA for e6a9145

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+2
-1
lines changed

‎lib/matplotlib/axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8184,7 +8184,8 @@ def hist(self, x, bins=10, range=None, normed=False, weights=None,
81848184

81858185
x[0::2], x[1::2] = bins, bins
81868186

8187-
minimum = np.min(n)
8187+
ndata = np.array(n)
8188+
minimum = (ndata[ndata>0].min())*0.1
81888189

81898190
if align == 'left' or align == 'center':
81908191
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.