Projects/laydi
Projects
/
laydi
Archived
7
0
Fork 0

removed ac.xlear()

This commit is contained in:
Arnar Flatberg 2006-08-08 11:09:59 +00:00
parent 9d0e088ced
commit 25f102bafd
1 changed files with 5 additions and 4 deletions

View File

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