Skip to content

Commit 6ec6fae

Browse files
committed
WIP: workaround to avoid error
1 parent cbf0917 commit 6ec6fae

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/silx/gui/plot/PlotWidget.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3171,6 +3171,11 @@ def _forceResetZoom(
31713171
if ranges.y is None:
31723172
ymin, ymax = ranges.yright
31733173

3174+
if ymin is None and ymax is None:
3175+
# FIXME: Workaround y1 can be None if y2 contains something
3176+
ymin = 0
3177+
ymax = 1
3178+
31743179
self.setLimits(
31753180
xmin,
31763181
xmax,

0 commit comments

Comments
 (0)