Thank you Dan!
the link you provided seems interesting and I tested ok
(provided that you use it this way:
x = range(10)
y = range(10)
annotes = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j']
fig = plt.figure()
ax = fig.add_subplot(111)
ax.scatter(x,y) # Generate the Scatter Plot.
af = AnnoteFinder(x,y, annotes)
fig.canvas.mpl_connect('button_press_event', af)
plt.show()
)
my remaining problem is that I dont know how to recover the (x,y)
coordinates from networkx (the annotes array yes, it's simply
G.nodes())
You say that NetworkX provides positions for the nodes through its
relatively simple layout functions - but I didnt find them...
alessandro
> >> Python code. Take a look athttp://
matplotlib.org/users/event_handling.htmlforthe capabilities