From: Vicent M. <uv...@gm...> - 2009-09-03 16:14:48
|
Hi Matthias, 2009/9/3 Matthias Michler <Mat...@gm...>: > 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. |