Skip to content

Commit

Permalink
WIP: workaround to avoid error
Browse files Browse the repository at this point in the history
  • Loading branch information
vallsv committed Jul 20, 2023
1 parent cbf0917 commit 6ec6fae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/silx/gui/plot/PlotWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6ec6fae

Please sign in to comment.