Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: workaround to avoid error
Browse files Browse the repository at this point in the history
vallsv committed Jul 20, 2023
1 parent bae8f02 commit 3a6991a
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
@@ -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,

0 comments on commit 3a6991a

Please sign in to comment.