Skip to content

Commit f08dd98

Browse files
authored
Fix indentation bug - issue #2279
Correct dataset handling for non-positive values, fixes #2279
1 parent d276ca2 commit f08dd98

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
@@ -202,7 +202,7 @@ def plot_Data2D(data, plt, log=False, legend=True, icolormap=0, verbose=False, f
202202
ymin = np.min(idx)/10
203203
if ymin <= 0:
204204
ymin=100*sys.float_info.min # Small, finite value.
205-
dataset[dataset<=0] = ymin
205+
dataset[dataset<=0] = ymin
206206
dataset = np.reshape(dataset, datashape)
207207
dataset = np.log10(dataset)
208208
else:

0 commit comments

Comments
 (0)