On Wed, Jun 10, 2009 at 9:04 AM, Ole Streicher<[email protected]> wrote: > Hi John, > > John Hunter <[email protected]> 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 ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Matplotlib-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-users
