|
From: John H. <jd...@gm...> - 2009-06-10 14:12:57
|
On Wed, Jun 10, 2009 at 9:04 AM, Ole Streicher<ole...@gm...> wrote: > Hi John, > > John Hunter <jd...@gm...> writes: >> If for some reason the built in pick_event is unsuitable, you can >> create your own matplotlib.backend_bases.MouseEvent and call >> line.contains(event) for each line you want to hit test. > > Thank you, that works for me. But for some reason, the "y" coordinate is > inversed in Qt and matplotlib? I have to specify Yes, for mpl 0,0 is bottom, left whereas many GUI canvases call 0,0 top, left > The other question that now remains is: how can I remove a line from an > axes? ax.lines.remove(someline) fig.canvas.draw() JDH |