Projects/laydi
Projects
/
laydi
Archived
7
0
Fork 0

Fixed selection bug in NetworkPlot. The bug was introduced by the switch to numpy.

This commit is contained in:
Einar Ryeng 2006-09-15 19:03:31 +00:00
parent b8d503a91f
commit c7f74f67ca
1 changed files with 1 additions and 1 deletions

View File

@ -684,7 +684,7 @@ class NetworkPlot(Plot):
y1, y2 = y2, y1 y1, y2 = y2, y1
index = scipy.nonzero((xdata>x1) & (xdata<x2) & (ydata>y1) & (ydata<y2)) index = scipy.nonzero((xdata>x1) & (xdata<x2) & (ydata>y1) & (ydata<y2))
ids = [node_ids[i] for i in index] ids = [node_ids[i] for i in index[0]]
self.selection_listener(self.dataset.get_dim_name(0), ids) self.selection_listener(self.dataset.get_dim_name(0), ids)
def set_current_selection(self, selection): def set_current_selection(self, selection):