|
From: V. A. S. <so...@es...> - 2014-01-07 14:28:23
|
Hello, I am trying to add some vertical lines into a matplotlib figure axes. The idea is to detect when the mouse passes over those lines in order to displace them following the mouse if the left button is pressed. I need some help to know the simplest way to proceed. Currently I am looking into matplotlib.patches and considering to use a Polygon or a Rectangle but perhaps that solution is overkill for a simple line. Is there any example about how to do it? I am not using the pyplot interface but instantiating myself the Figure, the FigureCanvas and adding the axes to the figure. Thanks for your time, Armando |