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:
Mikhail Terekhov 2016-12-14 22:39:39 -05:00 committed by Mikhail Terekhov
parent c238be004e
commit b13062f081

View File

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