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


 - initialization error in plotcurveitem
 - performance fix for plotdataitem
parent 59ed9397
......@@ -195,7 +195,8 @@ class PlotCurveItem(GraphicsObject):
for k in ['x', 'y']:
data = kargs[k]
if isinstance(data, list):
kargs['k'] = np.array(data)
data = np.array(data)
kargs[k] = data
if not isinstance(data, np.ndarray) or data.ndim > 1:
raise Exception("Plot data must be 1D ndarray.")
if 'complex' in str(data.dtype):
......@@ -322,8 +322,8 @@ class PlotDataItem(GraphicsObject):
x,y = self.getData()
self.curve.setData(x=x, y=y, **curveArgs)
if curveArgs['pen'] is not None or curveArgs['brush'] is not None:
if curveArgs['pen'] is not None or (curveArgs['brush'] is not None and curveArgs['fillLevel'] is not None):
self.curve.setData(x=x, y=y, **curveArgs)
......@@ -331,8 +331,8 @@ class PlotDataItem(GraphicsObject):
self.scatter.setData(x=x, y=y, **scatterArgs)
if scatterArgs['symbol'] is not None:
self.scatter.setData(x=x, y=y, **scatterArgs)
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