Skip to content

Commit 14f548a

Browse files
committed
Use sys.float_info.min*100 as "float min" value instead
1 parent 46de66e commit 14f548a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/Python/mcplot/pyqtgraph/plotfuncs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def plot_Data2D(data, plt, log=False, legend=True, icolormap=0, verbose=False, f
198198
if len(idx) > 0:
199199
ymin = np.min(idx)/10
200200
if ymin <= 0:
201-
ymin=1e-37 # kind of 1/FLTMAX
201+
ymin=100*sys.float_info.min # Small, finite value.
202202
dataset[dataset<=0] = ymin
203203
dataset = np.reshape(dataset, datashape)
204204
dataset = np.log10(dataset)

0 commit comments

Comments
 (0)