Commit ad20103c authored by Luke Campagnola's avatar Luke Campagnola
Browse files

Check for length=0 arrays when using autoVisible

parent 2f510de2
......@@ -112,7 +112,10 @@ class PlotCurveItem(GraphicsObject):
if orthoRange is not None:
mask = (d2 >= orthoRange[0]) * (d2 <= orthoRange[1])
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
if frac >= 1.0:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment