Fixed selection bug in NetworkPlot. The bug was introduced by the switch to numpy.
This commit is contained in:
parent
b8d503a91f
commit
c7f74f67ca
|
@ -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):
|
||||||
|
|
Reference in New Issue