diff --git a/system/plots.py b/system/plots.py index a0a5bd8..cbbddfc 100644 --- a/system/plots.py +++ b/system/plots.py @@ -449,7 +449,7 @@ class ScatterPlot(Plot): self.xaxis_data = dataset_1._array[:,x_index] self.yaxis_data = dataset_2._array[:,y_index] - ax.plot(self.xaxis_data,self.yaxis_data,'og') + ax.plot(self.xaxis_data,self.yaxis_data,'o',markeredgewidth=0) ax.set_title(self.get_title()) ax.set_xlabel("%s - %s" % (sel_dim, id_1)) ax.set_ylabel("%s - %s" % (sel_dim, id_2)) @@ -490,9 +490,10 @@ class ScatterPlot(Plot): index = self.dataset_1.get_indices(self.current_dim, ids) 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') + #remove old selection + if len(self.ax.lines)>1: + del self.ax.lines[-1] + self.ax.plot(xdata_new,ydata_new,'ok') self.canvas.draw() class NetworkPlot(Plot):