8000 MNT: match numpy's behavior of not dropping nans · matplotlib/matplotlib@3b47bc1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3b47bc1

Browse files
committed
MNT: match numpy's behavior of not dropping nans
1 parent 6fa3f93 commit 3b47bc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def histogram_bin_edges(arr, bins, range=None, weights=None):
5050
# hard-code numpy's default
5151
bins = 10
5252
if range is None:
53-
range = np.nanmin(arr), np.nanmax(arr)
53+
range = np.min(arr), np.max(arr)
5454

5555
return np.linspace(*range, bins + 1)
5656

0 commit comments

Comments
 (0)
0