From: Sandy Y. <cd...@li...> - 2010-05-18 16:03:58
|
good thank yuo very much but now I have all files in C:\start_Feb_8\programs\liveplots-0.3 and I use Vista what I should do? From: fcc...@gm... Date: Tue, 18 May 2010 16:43:41 +0100 Subject: Re: [Gnuplot-py-users] is it possible to continue to Debug when figure is created?? To: cd...@li... You are supposed to use mercurial to checkout the source code tree... to make things easier, I have just added an archive with the source in the featured downloads. http://code.google.com/p/liveplots/downloads/detail?name=liveplots-0.3.tar.gz cheers, Flávio On Tue, May 18, 2010 at 4:27 PM, Sandy Ydnas <cd...@li...> wrote: ok but first I should download liveplots all files one by one or package? but way in http://code.google.com/p/liveplots/downloads/list there are no files to download Sandy From: fcc...@gm... Date: Tue, 18 May 2010 14:58:12 +0100 Subject: Re: [Gnuplot-py-users] is it possible to continue to Debug when figure is created?? To: cd...@li... CC: gnu...@li... Hi Sandy, You error is due to the fact that you have not imported Gnuplot as you should. So that snippet would become: import Gnuplot Gnuplot.GnuplotOpts.prefer_inline_data = 1 Gnuplot.GnuplotOpts.prefer_fifo_data = 0 Liveplots is free-software and you are welcome to use it if you find it suits your needs. To install it, if you have setuptools installed, you write: easy_install liveplots otherwise, just checkout the code, as explained here https://code.google.com/p/liveplots/source/checkout, and run: python setup.py install these commands may be sligthly different depending on which operating system you use. Flávio On Tue, May 18, 2010 at 2:47 PM, Sandy Ydnas <cd...@li...> wrote: Hi Flávio thank you very much for help if we use from numpy import * g = Gnuplot.Gnuplot(persist=0) then NameError: name 'Gnuplot' is not defined File "C:\start_Feb_8\my_PY_code\May_18__gnuplot_answer_test_1.py", line 3, in <module> g = Gnuplot.Gnuplot(persist=0) as I mentioned I am very new in Python may I use you project [1]http://code.google.com/p/liveplots/ but how to install it?? Thank you very much in advance Sandy From: fcc...@gm... Date: Tue, 18 May 2010 10:25:18 +0100 To: gnu...@li... Subject: Re: [Gnuplot-py-users] is it possible to continue to Debug when figure is created?? 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 Hotmail: Powerful Free email with security by Microsoft. Get it now. -- Flávio Codeço Coelho Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. Sign up now. -- Flávio Codeço Coelho _________________________________________________________________ Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. https://signup.live.com/signup.aspx?id=60969 |