pydiodon.hovering

pydiodon.hovering(F1, F2, label, prefix=None, c='b', s=20)[source]

Display a label of one dot selected with the mouse in a scatter plot

Parameters
F11D numy array

first axis

F21D numpy array

second axis

prefixforgotten
cstring

forgotten

sinteger

forgotten

Notes

A scatter plot with F1 on axis 1 and F2 on axis 2 is displayed. When the mouse clicks on a point, a comment is displayed on the console with the index of the item cliked, and the value of the label for this item

This is event based, i.e. cliking with the mouse can be repeated as many times as wished.

Adapted from http://matplotlib.sourceforge.net/examples/event_handling/pick_event_demo.html

af, 25/10/2017