Check for length=0 arrays when using autoVisible

This commit is contained in:
Luke Campagnola 2013-03-17 14:26:23 -04:00
parent 2f510de2ca
commit ad20103ccc

View File

@ -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: