removed ac.xlear()
This commit is contained in:
parent
9d0e088ced
commit
25f102bafd
|
@ -449,7 +449,7 @@ class ScatterPlot(Plot):
|
||||||
|
|
||||||
self.xaxis_data = dataset_1._array[:,x_index]
|
self.xaxis_data = dataset_1._array[:,x_index]
|
||||||
self.yaxis_data = dataset_2._array[:,y_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_title(self.get_title())
|
||||||
ax.set_xlabel("%s - %s" % (sel_dim, id_1))
|
ax.set_xlabel("%s - %s" % (sel_dim, id_1))
|
||||||
ax.set_ylabel("%s - %s" % (sel_dim, id_2))
|
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)
|
index = self.dataset_1.get_indices(self.current_dim, ids)
|
||||||
xdata_new = scipy.take(self.xaxis_data, index) #take data
|
xdata_new = scipy.take(self.xaxis_data, index) #take data
|
||||||
ydata_new = scipy.take(self.yaxis_data, index)
|
ydata_new = scipy.take(self.yaxis_data, index)
|
||||||
self.ax.clear()
|
#remove old selection
|
||||||
self.ax.plot(self.xaxis_data,self.yaxis_data,'og')
|
if len(self.ax.lines)>1:
|
||||||
self.ax.plot(xdata_new,ydata_new,'or')
|
del self.ax.lines[-1]
|
||||||
|
self.ax.plot(xdata_new,ydata_new,'ok')
|
||||||
self.canvas.draw()
|
self.canvas.draw()
|
||||||
|
|
||||||
class NetworkPlot(Plot):
|
class NetworkPlot(Plot):
|
||||||
|
|
Reference in New Issue