From 6ec6fae82edbb5fb0e5cb030ae16dfbd51ef7e8b Mon Sep 17 00:00:00 2001 From: Valentin Valls Date: Thu, 20 Jul 2023 17:39:36 +0200 Subject: [PATCH] WIP: workaround to avoid error --- src/silx/gui/plot/PlotWidget.py | 5 +++++ 1 file changed, 5 insertions(+) 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,