From 3fb7d06f4e760f3b067470ec49584d1252ee8d67 Mon Sep 17 00:00:00 2001 From: tangstad Date: Mon, 24 Apr 2006 14:25:24 +0000 Subject: [PATCH] Fixed problem with plots accumulating. --- system/plots.py | 1 + 1 file changed, 1 insertion(+) diff --git a/system/plots.py b/system/plots.py index d3cae3b..594b227 100644 --- a/system/plots.py +++ b/system/plots.py @@ -282,6 +282,7 @@ class ScatterPlot(Plot): index = [ind for id,ind in self.dataset[self.current_dim].items() if id in ids] #conversion to index xdata_new = scipy.take(self.xaxis_data,index) #take data ydata_new = scipy.take(self.yaxis_data,index) + self.ax.clear() self.ax.plot(self.xaxis_data,self.yaxis_data,'og') self.ax.plot(xdata_new,ydata_new,'or') self.canvas.draw()