From: Jae-Joon L. <lee...@gm...> - 2010-12-10 01:46:21
|
As far as I understand, all the events in matplotlib are associated with a single Axes instance (or None). For overlapping multiple axes, the axes with highest zorder is picked up. And a "pick event only works for artists in the associated axes. While this simple approach is okay at least to me, I want to hear from other developers. For the example above, a workaround is to move the line to the axes of higher zorder. line.remove() ax2.add_line(line) Regards, -JJ On Fri, Dec 10, 2010 at 5:01 AM, Goyo <goy...@gm...> wrote: > 2010/12/9 C M <cmp...@gm...>: >> >>> I have created a runnable sample app that demonstrates the problem >> >> Here is a much simpler 10 line sample that doesn't require wxPython and >> demonstrates the problem: you can't pick the red line. This seems like a >> bug in mpl 1.0. > > Confirmed using tkagg, mpl 1.0.0 and Ubuntu 10.10. I do not know much > about the semantics of the pick event but it I don't think it should > discriminate between lines in the same canvas si I guess it's a bug. > > Goyo > > ------------------------------------------------------------------------------ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |