Re: [Matplotlib-users] Getting arrax indices using the zoom tool

2009-04-22 Thread Gökhan SEVER
Still same with IPython 0.9.1 I will test on Win XP when I get a chance. Gökhan On Wed, Apr 22, 2009 at 8:54 AM, Gökhan SEVER wrote: > Huh, > > My definition of kill is just like you said. > > Inside Ipython print statements output x_new, and y_new values, but no > context saving :( > > Worse

Re: [Matplotlib-users] Getting arrax indices using the zoom tool

2009-04-22 Thread Gökhan SEVER
Huh, My definition of kill is just like you said. Inside Ipython print statements output x_new, and y_new values, but no context saving :( Worse thing is python rect.py does not nothing, not even with -d switch :( :( I will try with Ipython 0.9.1. Gökhan On Wed, Apr 22, 2009 at 4:40 AM, Matt

Re: [Matplotlib-users] Getting arrax indices using the zoom tool

2009-04-22 Thread Matthias Michler
Hi Gökhan, Hi list, On Tuesday 21 April 2009 19:44:18 Gökhan SEVER wrote: > Hi Matthias, > > Thanks for your reply again. Unfortunately I can't read x_new or y_new > after I kill the figures (nor when they are active). I don't know what > exactly wrong in my configuration or IPython. I use IPython

Re: [Matplotlib-users] Getting arrax indices using the zoom tool

2009-04-21 Thread Gökhan SEVER
Hi Matthias, Thanks for your reply again. Unfortunately I can't read x_new or y_new after I kill the figures (nor when they are active). I don't know what exactly wrong in my configuration or IPython. I use IPython 0.10.bzr.r1163 on Fedora 10. Hopefully, I will solve the masked array riddle by re

Re: [Matplotlib-users] Getting arrax indices using the zoom tool

2009-04-21 Thread Matthias Michler
Hi Gökhan, Hi list, Hi experts on masked arrays, I run the attached script (copied from your last two emails) and I can use x_new, y_new after closing the figures (where x_new and y_new are the values selected in the last selection). I don't know, what is going wrong with your script on your sy

Re: [Matplotlib-users] Getting arrax indices using the zoom tool

2009-04-20 Thread Eric Firing
Gökhan SEVER wrote: > Eric, > > I see many quality descriptive plots and analysis results following the > main currents page. Really a professional looking research job. Could > you please tell me how many people working on this project and how long > have you been working on it? We are way of

Re: [Matplotlib-users] Getting arrax indices using the zoom tool

2009-04-20 Thread Gökhan SEVER
Eric, I see many quality descriptive plots and analysis results following the main currents page. Really a professional looking research job. Could you please tell me how many people working on this project and how long have you been working on it? Thank you Gökhan On Mon, Apr 20, 2009 at 5:18

Re: [Matplotlib-users] Getting arrax indices using the zoom tool

2009-04-20 Thread Eric Firing
Gökhan SEVER wrote: > Eric, > > As you said, your program features more than what me in my mind. It > looks very cool. There are some parts which I don't understand quite well. > > I will definitely save it for my future programming adventures. I will > solely use it in my academical research,

Re: [Matplotlib-users] Getting arrax indices using the zoom tool

2009-04-20 Thread Gökhan SEVER
Eric, As you said, your program features more than what me in my mind. It looks very cool. There are some parts which I don't understand quite well. I will definitely save it for my future programming adventures. I will solely use it in my academical research, since I am a graduate student workin

Re: [Matplotlib-users] Getting arrax indices using the zoom tool

2009-04-20 Thread Gökhan SEVER
Thanks for elegant trick Matthias. I have modified onselect function following your suggestions, and it is working as I wanted it to be. Select a portion and get a zoomed view in a new figure. def onselect(eclick, erelease): # eclick and erelease are matplotlib events at press and release

Re: [Matplotlib-users] Getting arrax indices using the zoom tool

2009-04-20 Thread Eric Firing
Matthias Michler wrote: > Hi Gökhan, > > On Friday 17 April 2009 20:21:00 Gökhan SEVER wrote: >> Thanks for the pointer Matthias, >> >> That is exactly what I have been looking for. You might also find useful ideas here: http://currents.soest.hawaii.edu/hg/hgwebdir.cgi/pycurrents/file/2ec7845a90

Re: [Matplotlib-users] Getting arrax indices using the zoom tool

2009-04-20 Thread Matthias Michler
Hi Gökhan, On Friday 17 April 2009 20:21:00 Gökhan SEVER wrote: > Thanks for the pointer Matthias, > > That is exactly what I have been looking for. > > I use the code from the RectangleSelector class help with your suggested > code. I know that I have to update y-axis accordingly to x values such

Re: [Matplotlib-users] Getting arrax indices using the zoom tool

2009-04-17 Thread Gökhan SEVER
Thanks for the pointer Matthias, That is exactly what I have been looking for. I use the code from the RectangleSelector class help with your suggested code. I know that I have to update y-axis accordingly to x values such that their positions and sizes must much so that I can plot them in a new

Re: [Matplotlib-users] Getting arrax indices using the zoom tool

2009-04-17 Thread Matthias Michler
Hi Gökhan, I recommend you to use matplotlib.widgets.RectangleSelector instead of the zoom functionality to select the data (An example can be found at http://matplotlib.sourceforge.net/examples/widgets/rectangle_selector.html ). This will return you the x and y-coordinate of button press and bu

Re: [Matplotlib-users] Getting arrax indices using the zoom tool

2009-04-16 Thread Gökhan SEVER
Thanks for the suggestion Alan. This is just a preliminary data --needs to be gone over and edited unreasonable peaks. By the way the data is from a cloud condensation nuclei counter. On Thu, Apr 16, 2009 at 8:51 PM, Alan G Isaac wrote: > On 4/16/2009 8:26 PM Gökhan SEVER apparently wrote: > >

Re: [Matplotlib-users] Getting arrax indices using the zoom tool

2009-04-16 Thread Alan G Isaac
On 4/16/2009 8:26 PM Gökhan SEVER apparently wrote: > I am using two numpy arrays to plot the figure shown in attachment. Is > it possible to get array indices of selected X-axes while using the zoom > function? Later I can create a new figure from this selected portion > instead of the same fig