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:
> >>>>
> >>>>
> >>>
> 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 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 off a child task
> >> that stays alive when the parent exits. You'd also need to get the
> >> computing process to give new results to the child plot, maybe using a
> pipe
> >> (which I think subprocess can handle as well.)
> >
> > 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.sourceforge.net/msg10873.html
>
> 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 that Ctrl-C interrupted the program, but it had to be killed
> to stop, disappeared. I can fix the script that I sent in message [1]
> and provide it, if there is interest. (Currently I have fixed only the
> version that is within sfepy).
>
> thanks!
> r.
>
> [1] [Matplotlib-users] plotting in a separate process, 31.03.2009
>
>
> ------------------------------------------------------------------------------
> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
> production scanning environment may not be a perfect world - but thanks to
> Kodak, there's a perfect scanner to get the job done! With the NEW KODAK
> i700
> Series Scanner you'll get full speed at 300 dpi even with all image
> processing features enabled. http://p.sf.net/sfu/kodak-com
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users