Vito De Tullio schrieb: > Hi all. > I'm using matplotlib to draw some graph in a pyqt application. > Is there a way to show infos only when the mouse hover the plot nodes? > At the moment I'm stuck using this (ugly, and conceptually wrong) piece of > code, written by me... > > basically I add hidden annotations where I need, then (ab)use the > fig.canvas.mpl_connect function with the 'motion_notify_event' option. > > Is there a "motion_mouse_enter_plot" / "motion_mouse_exit_plot" or something > similar? I see there is the "pick_event" interface, but I don't want to > show infos "on click", but "on hovering" > I didn't understand what you mean by 'plot nodes', but there exist figure_enter_event, figure_leave_event, axes_enter_event and axes_leave_event, see http://matplotlib.sourceforge.net/examples/event_handling/figure_axes_enter_leave.html
Gregor ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users