From: Flavio C. <fcc...@gm...> - 2010-05-18 09:25:47
|
Sandy, Like Michael said, You can turn off fifo data transfer and use inline with these lines: Gnuplot.GnuplotOpts.prefer_inline_data = 1 Gnuplot.GnuplotOpts.prefer_fifo_data = 0 I do this in Liveplots[1] and found that inlining data improved the performance enormously. Besides, since I use Python's multiprocessing module to plot data from children processes, FIFO did not work for me. Flávio [1]http://code.google.com/p/liveplots/ On Tue, May 18, 2010 at 8:17 AM, Benny Malengier <ben...@gm...>wrote: > > > 2010/5/18 Michael Haggerty <mh...@al...> > > Sandy Ydnas wrote: >> > I am staring now to use Gnuplot under Python, since Matplotlib has >> > problem - it gets stuck during debugging after show(). >> > >> > pls help understand is Gnuplot debugging friendly, it means is it >> > possible to continue to Debug when figure is created?? >> >> I personally don't use pdb, but I don't know of any reason why it should >> be difficult to debug code that uses Gnuplot.py. The only thing that >> occurs to me is that the use of FIFOs to communicate data to gnuplot >> currently requires the use of additional threads that write the data to >> the FIFO, and debugging multithreaded code might be tricky. But the use >> of FIFOs is optional; you could configure Gnuplot.py to use temporary >> files or inline data instead. >> >> Please tell us what you find out! >> > > Use > g = Gnuplot.Gnuplot(persist=0) > The persist=0 should allow you to easily jump over the code that does the > figure. > > Benny > > >> Michael >> >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> Gnuplot-py-users mailing list >> Gnu...@li... >> https://lists.sourceforge.net/lists/listinfo/gnuplot-py-users >> > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Gnuplot-py-users mailing list > Gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-py-users > > -- Flávio Codeço Coelho |