Fixed deselection in scatterplot.
This commit is contained in:
parent
3fb7d06f4e
commit
b807f27874
|
@ -269,9 +269,6 @@ class ScatterPlot(Plot):
|
||||||
#logger.log('debug','Selection y_start bigger than y_end')
|
#logger.log('debug','Selection y_start bigger than y_end')
|
||||||
index =scipy.nonzero((xdata>x1) & (xdata<x2) & (ydata<y1) & (ydata>y2))
|
index =scipy.nonzero((xdata>x1) & (xdata<x2) & (ydata<y1) & (ydata>y2))
|
||||||
|
|
||||||
if len(index)==0:
|
|
||||||
logger.log('debug','No points selected!')
|
|
||||||
else:
|
|
||||||
ids = [id for id,ind in self.dataset[self.current_dim].items() if ind in index]
|
ids = [id for id,ind in self.dataset[self.current_dim].items() if ind in index]
|
||||||
self.project.set_selection(self.current_dim,ids)
|
self.project.set_selection(self.current_dim,ids)
|
||||||
|
|
||||||
|
|
Reference in New Issue