python - Matplotlib on click get node -


i want change color on node clicked on

def button_press_callback(event):    print event.x 

this event add figure:

    wm.canvas.mpl_connect('button_press_event', button_press_callback) 

i want detect on node clicked , change color of node.

when try ind property event object, exception thrown:

 ind = event.ind[0]  attributeerror: mouseevent instance has no attribute 'ind' 

but in examples see other users can ind property.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -