Re: [Matplotlib-users] creating live plot (update while data is arriving)

2007-04-01 Thread Eric Firing
Antonino Ingargiola wrote: > On 4/1/07, Antonino Ingargiola <[EMAIL PROTECTED]> wrote: >> On 3/29/07, Ken McIvor <[EMAIL PROTECTED]> wrote: > [cut] The last think I'm not yet able to do is to update the colorbar to autoscale with the new incoming data. The the script that follows tri

Re: [Matplotlib-users] creating live plot (update while data is arriving)

2007-04-01 Thread Antonino Ingargiola
On 4/1/07, Antonino Ingargiola <[EMAIL PROTECTED]> wrote: > On 3/29/07, Ken McIvor <[EMAIL PROTECTED]> wrote: [cut] > > > The last think I'm not yet able to do is to update the colorbar to > > > autoscale with the new incoming data. The the script that follows > > > tries to update the colorbar too

Re: [Matplotlib-users] creating live plot (update while data is arriving)

2007-04-01 Thread Antonino Ingargiola
Sorry for the late answer... On 3/29/07, Ken McIvor <[EMAIL PROTECTED]> wrote: > On Mar 28, 2007, at 6:03 PM, Antonino Ingargiola wrote: > > On 3/28/07, Ken McIvor <[EMAIL PROTECTED]> wrote: > >> You should probably do the acquisition asynchronously by running it > >> in a separate thread. > > >

Re: [Matplotlib-users] creating live plot (update while data is arriving)

2007-03-28 Thread Ken McIvor
On Mar 28, 2007, at 6:03 PM, Antonino Ingargiola wrote: > On 3/28/07, Ken McIvor <[EMAIL PROTECTED]> wrote: >> You should probably do the acquisition asynchronously by running it >> in a separate thread. > > That's exactly what I'd like to do. The problem is that if I run > gtk.main() (the gtk mai

Re: [Matplotlib-users] creating live plot (update while data is arriving)

2007-03-28 Thread Antonino Ingargiola
On 3/28/07, Ken McIvor <[EMAIL PROTECTED]> wrote: > On Mar 27, 2007, at 12:35 PM, Antonino Ingargiola wrote: [cut] > You should probably do the acquisition asynchronously by running it > in a separate thread. That thread would read in the data one point > at a time, perform any pre-processing, and

Re: [Matplotlib-users] creating live plot (update while data is arriving)

2007-03-28 Thread Fernando Perez
On 3/28/07, Ken McIvor <[EMAIL PROTECTED]> wrote: > You'd almost certainly be happier doing things the other way around. > Most GUI toolkits are extremely fussy about what thread the GUI event > loop runs in. For example, wxPython requires App.MainLoop() be > called from the thread that first imp

Re: [Matplotlib-users] creating live plot (update while data is arriving)

2007-03-28 Thread Ken McIvor
On Mar 27, 2007, at 12:35 PM, Antonino Ingargiola wrote: > > I'm searching to display in realtime some data read serial port. The > data is a 2D matrix and is read element wise from the serial, one > pixel each one (or more) seconds. You shouldn't have any problems making this happen, although it

[Matplotlib-users] creating live plot (update while data is arriving)

2007-03-27 Thread Antonino Ingargiola
Hi to the list, I'm searching to display in realtime some data read serial port. The data is a 2D matrix and is read element wise from the serial, one pixel each one (or more) seconds. I'm running the script from "ipython -pylab" using the command "run scriptname". After "loading" the script I i