Hi Matthias,

2009/9/3 Matthias Michler <matthiasmich...@gmx.net>:
> Hi Vicent,
>
> I think the following example may help you, althogh their might be a better
> way:
>

thanks for your answer. It really helps. I didn't know about the mode
attribute of navigation toolbars. Inspecting the
NavigationToolbar2QTAgg class interactively with an IPython shell
doesn't show such attribute for this class. Maybe it is created
dynamically when the pan/zoom button is clicked?

Now I still have to find out how to distinguish axes pan from axes
zoom cases. I suppose I can use 'button_press_event' canvas events and
use the button attribute of these events for knowing if the user is
doing a pan or a zoom: pan/zoom mode + left button --> user is panning
axes, pan/zoom mode + right button --> user is zooming axes. Right?

Anyway, thanks again for your help.

-- 
Share what you know, learn what you don't.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to