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 cimrm...@ntc.zcu.cz wrote: Ryan May wrote: On Wed, May 6, 2009 at 7:57 AM, Robert Cimrman cimrm...@ntc.zcu.cz wrote: Just for the record: Ryan May's example in this thread, that uses pipes, inspired me to try pipes as well,

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 ebo...@hotmail.com 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

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 cimrm...@ntc.zcu.cz wrote: Robert Cimrman wrote: Hi Ryan, Ryan May wrote: On Thu, Apr 23, 2009 at 4:16 PM, Esmail ebo...@hotmail.com wrote: Ryan May wrote: Try this:

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 cimrm...@ntc.zcu.cz wrote: Robert Cimrman wrote: Hi Ryan, Ryan May wrote: On Thu, Apr 23, 2009 at 4:16 PM, Esmail ebo...@hotmail.com wrote: Ryan May wrote: Try this:

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 cimrm...@ntc.zcu.cz 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

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-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-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-24 Thread Robert Cimrman
Hi Ryan, Ryan May wrote: On Thu, Apr 23, 2009 at 4:16 PM, Esmail ebo...@hotmail.com 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

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 spin

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]

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]

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 ebo...@hotmail.com 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
Ryan May wrote: On Fri, Apr 24, 2009 at 5:52 AM, Esmail ebo...@hotmail.com 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

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 ebo...@hotmail.com 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

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 Python

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 ebo...@hotmail.com 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,