On Tue, Feb 14, 2012 at 4:54 AM, Oren Gampel <o...@futuretech.co.il> wrote:

> This is relating wxmpl (wxPython+matplotlib). version 2.0dev of wxmpl,
> matplotlib ver 1.1.0, and wx version is 2.8.12.1.
>
> Since wxmpl is a very "thin" layer above mpl, I believe this is an issue
> with mpl.
>
> I'm using wxmpl and trying to get mouse points and selection. This
> fails when there is more than one axes in the same place, which I do
> since I'm using twinx() in my original code.
>
> I believe the issue is the overlapping of both axes on the same area.
> The following code shows that overlapping two axes makes
> the mouse events in the overlapped area fail. For example, the cursor
> doesn't change in them and the crosshairs disappear (if enabled).
> Removing the ax2 code, or just ensuring ax1 and ax2 do not overlap
> allows all the events to reach the handler.
>
> Any idea on how to receive mouse events from the overlapped area?
>
> Thanks,
> Oren
>


Oren,

You identified the source of the problem correctly and this is a known
issue.  It used to be possible to do this, but due to changes needed to fix
other bugs, thiis "feature" went away (I think at v1.0.0).

We agree that this isn't desirable, but we have not found a suitable
solution.  There have been some discussion about this and proposed
solutions.  Here is one with possible hacks that might be useful.

http://old.nabble.com/onpick-on-a-2-y-plot-%28-via-twinx%28%29-%29-seems-to-only-allow-picking-of-second-axes%27s-artists-td25049128.html

I hope this helps!
Ben Root
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to