I would like to allow user interactivity similar to this Javascript demo in a Matplotlib plot. I have a fairly good idea of how I can do this with a slider widget, but I would prefer direct interaction with the curve. What tools are available? It does not have to be a web app, it can be a simple interactivity built into the plot.