Check for length=0 arrays when using autoVisible
This commit is contained in:
parent
2f510de2ca
commit
ad20103ccc
@ -112,7 +112,10 @@ class PlotCurveItem(GraphicsObject):
|
|||||||
if orthoRange is not None:
|
if orthoRange is not None:
|
||||||
mask = (d2 >= orthoRange[0]) * (d2 <= orthoRange[1])
|
mask = (d2 >= orthoRange[0]) * (d2 <= orthoRange[1])
|
||||||
d = d[mask]
|
d = d[mask]
|
||||||
d2 = d2[mask]
|
#d2 = d2[mask]
|
||||||
|
|
||||||
|
if len(d) == 0:
|
||||||
|
return (None, None)
|
||||||
|
|
||||||
## Get min/max (or percentiles) of the requested data range
|
## Get min/max (or percentiles) of the requested data range
|
||||||
if frac >= 1.0:
|
if frac >= 1.0:
|
||||||
|
Loading…
Reference in New Issue
Block a user