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 83f3ff9

Browse filesBrowse files
committed
Use numpy.min
1 parent e574c11 commit 83f3ff9
Copy full SHA for 83f3ff9

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+2
-2
lines changed

‎lib/matplotlib/axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8190,13 +8190,13 @@ def hist(self, x, bins=10, range=None, normed=False, weights=None,
81908190
# for normed data, set to 0.1 * minimum data value
81918191
# (gives 1 full dex for the lowest filled bin)
81928192
ndata = np.array(n)
8193-
minimum = (ndata[ndata>0].min())*0.1
8193+
minimum = (np.min(ndata[ndata>0]))*0.1
81948194
else:
81958195
# for non-normed data, set the min to 0.1, again so that
81968196
# there is 1 full dex for the lowest bin
81978197
minimum = 0.1
81988198
else:
8199-
minimum = min(bins)
8199+
minimum = np.min(bins)
82008200

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