Re: [Matplotlib-users] pan/zoom axes problem

2009-10-30 Thread Vicent Mas
> Dear Vicent, > > I'm struggling with embedding a navigation toolbar in a QT4 application > with matplotlib canvas. Could you please send me an example code of how I > add the navigation toolbar in the first place? > > As you notice, I'm a real newbe! > > Thank you very much, > > Thom > > V

Re: [Matplotlib-users] pan/zoom axes problem

2009-10-30 Thread Thomba
Dear Vicent, I'm struggling with embedding a navigation toolbar in a QT4 application with matplotlib canvas. Could you please send me an example code of how I add the navigation toolbar in the first place? As you notice, I'm a real newbe! Thank you very much, Thom Vicent Mas-2 wrote: > > H

Re: [Matplotlib-users] pan/zoom axes problem

2009-09-04 Thread Vicent Mas
Hi Matthias , thanks a lot for your explanations. They were very useful. Vicent -- Share what you know, learn what you don't. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simpl

Re: [Matplotlib-users] pan/zoom axes problem

2009-09-04 Thread Matthias Michler
Hi Vicent, On Thursday 03 September 2009 18:14:37 Vicent Mas wrote: > Hi Matthias, > > 2009/9/3 Matthias Michler : > > 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 >

Re: [Matplotlib-users] pan/zoom axes problem

2009-09-03 Thread Vicent Mas
Hi Matthias, 2009/9/3 Matthias Michler : > 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 inter

Re: [Matplotlib-users] pan/zoom axes problem

2009-09-03 Thread Matthias Michler
Hi Vicent, I think the following example may help you, althogh their might be a better way: ## import matplotlib.pyplot as plt def callback(ax): """ prints mode of toolbar after limits changed e.g. mode : >zoom rect< mode : >pan/z

[Matplotlib-users] pan/zoom axes problem

2009-09-03 Thread Vicent Mas
Hi, I'm a newbie to matplotlib. I'm embedding matplotlib (0,98.5.3) in a pyqt application. I'm using the qt4 backend and its navigation toolbar. I wish to execute a certain function every time the view interval of a figure is changed interactively (i.e. using the zoom rectangle or the axes pan/