From b807f278745c579bdd7c0c52034e0250215402ff Mon Sep 17 00:00:00 2001 From: tangstad Date: Mon, 24 Apr 2006 14:28:30 +0000 Subject: [PATCH] Fixed deselection in scatterplot. --- system/plots.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/system/plots.py b/system/plots.py index 594b227..8607828 100644 --- a/system/plots.py +++ b/system/plots.py @@ -269,11 +269,8 @@ class ScatterPlot(Plot): #logger.log('debug','Selection y_start bigger than y_end') index =scipy.nonzero((xdata>x1) & (xdatay2)) - 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] - self.project.set_selection(self.current_dim,ids) + ids = [id for id,ind in self.dataset[self.current_dim].items() if ind in index] + self.project.set_selection(self.current_dim,ids) def update(self,project,key): curr_sel = project.get_selection() # get selection object