File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -272,8 +272,8 @@ def reset_minmax(self):
272
272
color_value = self .color_func (data ) if self .color_func is not None else data
273
273
# ignore nan, -inf, inf (setting them to 0 or to very large numbers is not an option)
274
274
color_value = color_value [np .isfinite (color_value )]
275
- self .vmin = float (np .nanmin (color_value ))
276
- self .vmax = float (np .nanmax (color_value ))
275
+ self .vmin = float (np .min (color_value ))
276
+ self .vmax = float (np .max (color_value ))
277
277
self .bgcolor_possible = True
278
278
# ValueError for empty arrays, TypeError for object/string arrays
279
279
except (TypeError , ValueError ):
Original file line number Diff line number Diff line change @@ -864,7 +864,7 @@ def format_helper(self, data):
864
864
if not data .size :
865
865
return 0 , 0 , False
866
866
data = np .where (np .isfinite (data ), data , 0 )
867
- vmin , vmax = np .nanmin (data ), np .nanmax (data )
867
+ vmin , vmax = np .min (data ), np .max (data )
868
868
absmax = max (abs (vmin ), abs (vmax ))
869
869
logabsmax = math .log10 (absmax ) if absmax else 0
870
870
# minimum number of zeros before meaningful fractional part
You can’t perform that action at this time.
0 commit comments