Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-05-07 Thread Robert Cimrman
Ryan May wrote: > On Thu, May 7, 2009 at 12:39 PM, Eric Firing wrote: > >> In case you are not receiving the automatic svn commit messages: yesterday >> I took the liberty of renaming log.py to multiprocess.py, because as far as >> I could see the former gave no clue as to the point of the exampl

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-05-07 Thread Ryan May
On Thu, May 7, 2009 at 12:39 PM, Eric Firing wrote: > In case you are not receiving the automatic svn commit messages: yesterday > I took the liberty of renaming log.py to multiprocess.py, because as far as > I could see the former gave no clue as to the point of the example. Feel > free to chan

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-05-07 Thread Eric Firing
Robert Cimrman wrote: > Ryan May wrote: >> On Wed, May 6, 2009 at 8:53 AM, Robert Cimrman >> wrote: >> >>> Ryan May wrote: In case you are not receiving the automatic svn commit messages: yesterday I took the liberty of renaming log.py to multiprocess.py, because as far as I could see the form

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-05-07 Thread Robert Cimrman
Ryan May wrote: On Wed, May 6, 2009 at 8:53 AM, Robert Cimrman wrote: Ryan May wrote: On Wed, May 6, 2009 at 7:57 AM, Robert Cimrman wrote: Just for the record: Ryan May's example in this thread, that uses pipes, inspired me to try pipes as well, instead of queues (multiprocessing.Pipe in

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-05-06 Thread Ryan May
On Wed, May 6, 2009 at 8:53 AM, Robert Cimrman wrote: > Ryan May wrote: > >> On Wed, May 6, 2009 at 7:57 AM, Robert Cimrman >> wrote: >> >>> >>> Just for the record: Ryan May's example in this thread, that uses pipes, >>> inspired me to try pipes as well, instead of queues >>> (multiprocessing.P

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-05-06 Thread Robert Cimrman
william ratcliff wrote: I'd like to see it ;> Here you are... r. import time from multiprocessing import Process, Pipe from Queue import Empty import numpy as np import pylab import gobject class ProcessPlotter(object): def __init__(self): self.x = [] self.y = [] def

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-05-06 Thread Robert Cimrman
Ryan May wrote: > On Wed, May 6, 2009 at 7:57 AM, Robert Cimrman wrote: >> >> Just for the record: Ryan May's example in this thread, that uses pipes, >> inspired me to try pipes as well, instead of queues >> (multiprocessing.Pipe instead of Queue) and the "hanging problem", i.e. >> the problem th

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-05-06 Thread william ratcliff
I'd like to see it ;> On Wed, May 6, 2009 at 8:57 AM, Robert Cimrman wrote: > Robert Cimrman wrote: > > Hi Ryan, > > > > Ryan May wrote: > >> On Thu, Apr 23, 2009 at 4:16 PM, Esmail wrote: > >> > >>> Ryan May wrote: > Try this: > > > >>> > http://matplotlib.sourceforge.net/exampl

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-05-06 Thread Ryan May
On Wed, May 6, 2009 at 7:57 AM, Robert Cimrman wrote: > Robert Cimrman wrote: > > Hi Ryan, > > > > Ryan May wrote: > >> On Thu, Apr 23, 2009 at 4:16 PM, Esmail wrote: > >> > >>> Ryan May wrote: > Try this: > > > >>> > http://matplotlib.sourceforge.net/examples/animation/simple_ani

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-05-06 Thread Robert Cimrman
Robert Cimrman wrote: > Hi Ryan, > > Ryan May wrote: >> On Thu, Apr 23, 2009 at 4:16 PM, Esmail wrote: >> >>> Ryan May wrote: Try this: >>> http://matplotlib.sourceforge.net/examples/animation/simple_anim_gtk.html (If not gtk, there are other examples there.) >>> Thanks Ryan,

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-04-25 Thread Esmail
Ryan May wrote: > > I was curious, so I cooked up a quick demo using two scripts. Put them > in the same directory and run datasource.py. It's not perfect, and I > think the use of raw_input() is a little odd, but it works. Very cool Ryan, thanks for doing that, I plan on studying your code

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-04-25 Thread Esmail
Robert Cimrman wrote: > >> >> Sounds interesting, but I get a "page not found 404" type error when >> I follow this link. > > Strange, it does work for me. Alternatively, just search > "[Matplotlib-users] plotting in a separate process" in google... Thanks Robert, I'll give that a try. Esmail

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-04-24 Thread Robert Cimrman
Ryan May wrote: > On Fri, Apr 24, 2009 at 5:52 AM, Esmail wrote: > >> Ryan May wrote: >>> Any idea if it's possible to finish a Python program but still have >> the >>> graph showing? >>> >>> FWIW, I'm doing this under Linux. >>> >>> >>> You'd have to run the plotting in a separate pr

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-04-24 Thread Ryan May
On Fri, Apr 24, 2009 at 5:52 AM, Esmail wrote: > Ryan May wrote: > > > > Any idea if it's possible to finish a Python program but still have > the > > graph showing? > > > > FWIW, I'm doing this under Linux. > > > > > > You'd have to run the plotting in a separate process from the > >

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-04-24 Thread Robert Cimrman
Esmail wrote: > Robert Cimrman wrote: >> This is exactly what I have tried/described in [1], using the >> multiprocessing module. It sort of works, but I have that hanging >> problem at the end - maybe somebody jumps in and helps this time :) >> >> r. >> >> [1] >> http://www.mail-archive.com/mat

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-04-24 Thread Esmail
Robert Cimrman wrote: > > This is exactly what I have tried/described in [1], using the > multiprocessing module. It sort of works, but I have that hanging > problem at the end - maybe somebody jumps in and helps this time :) > > r. > > [1] > http://www.mail-archive.com/matplotlib-users@lists

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-04-24 Thread Esmail
Ryan May wrote: > > Any idea if it's possible to finish a Python program but still have the > graph showing? > > FWIW, I'm doing this under Linux. > > > You'd have to run the plotting in a separate process from the > computation. subprocess would let you do that, assuming you can

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-04-24 Thread Robert Cimrman
Hi Ryan, Ryan May wrote: > On Thu, Apr 23, 2009 at 4:16 PM, Esmail wrote: > >> Ryan May wrote: >>> Try this: >>> >>> >> http://matplotlib.sourceforge.net/examples/animation/simple_anim_gtk.html >>> (If not gtk, there are other examples there.) >> Thanks Ryan, that'll give me some idea with regar

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-04-23 Thread Ryan May
On Thu, Apr 23, 2009 at 4:16 PM, Esmail wrote: > Ryan May wrote: > > > > Try this: > > > > > http://matplotlib.sourceforge.net/examples/animation/simple_anim_gtk.html > > > > (If not gtk, there are other examples there.) > > Thanks Ryan, that'll give me some idea with regard to the animation, > a

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-04-23 Thread Esmail
Ryan May wrote: > > Try this: > > http://matplotlib.sourceforge.net/examples/animation/simple_anim_gtk.html > > (If not gtk, there are other examples there.) Thanks Ryan, that'll give me some idea with regard to the animation, and real-time drawings. Any idea if it's possible to finish a Pytho

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-04-23 Thread Ryan May
On Thu, Apr 23, 2009 at 1:04 PM, Esmail wrote: > Hi, > > I have two quick questions: > > 1. Is it possible to exit a Python program but still have the graph > window generated by pylot remain visible? Right now the program stops > when I display the (only) final graph. When I close this window, t

[Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-04-23 Thread Esmail
Hi, I have two quick questions: 1. Is it possible to exit a Python program but still have the graph window generated by pylot remain visible? Right now the program stops when I display the (only) final graph. When I close this window, the program exits. I would like to finish the program, but hav