Handle no y-range maxmin output (seems like bug?)
parent
26b0071471
commit
4570b06c26
piker/ui
|
@ -731,7 +731,11 @@ class ChartView(ViewBox):
|
||||||
)
|
)
|
||||||
|
|
||||||
if set_range:
|
if set_range:
|
||||||
ylow, yhigh = self._maxmin()
|
yrange = self._maxmin()
|
||||||
|
if yrange is None:
|
||||||
|
return
|
||||||
|
|
||||||
|
ylow, yhigh = yrange
|
||||||
|
|
||||||
# view margins: stay within a % of the "true range"
|
# view margins: stay within a % of the "true range"
|
||||||
diff = yhigh - ylow
|
diff = yhigh - ylow
|
||||||
|
|
Loading…
Reference in New Issue