diff --git a/src/silx/gui/plot/PlotWidget.py b/src/silx/gui/plot/PlotWidget.py index dea8c35c6b..5d7a26453e 100755 --- a/src/silx/gui/plot/PlotWidget.py +++ b/src/silx/gui/plot/PlotWidget.py @@ -3171,6 +3171,11 @@ def _forceResetZoom( if ranges.y is None: ymin, ymax = ranges.yright + if ymin is None and ymax is None: + # FIXME: Workaround y1 can be None if y2 contains something + ymin = 0 + ymax = 1 + self.setLimits( xmin, xmax,