In PlotDataItem.clear() use corresponding curve.clear() and scatter.clear()
Otherwise when stepMode is True curve.setData([]) causes exception: "len(X) must be len(Y)+1 ..."
This commit is contained in:
parent
c238be004e
commit
b13062f081
@ -627,9 +627,9 @@ class PlotDataItem(GraphicsObject):
|
||||
#self.yClean = None
|
||||
self.xDisp = None
|
||||
self.yDisp = None
|
||||
self.curve.setData([])
|
||||
self.scatter.setData([])
|
||||
|
||||
self.curve.clear()
|
||||
self.scatter.clear()
|
||||
|
||||
def appendData(self, *args, **kargs):
|
||||
pass
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user