You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(15) |
Sep
(21) |
Oct
(15) |
Nov
|
Dec
(3) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(7) |
Feb
(6) |
Mar
(2) |
Apr
(5) |
May
(6) |
Jun
(3) |
Jul
(4) |
Aug
(4) |
Sep
(3) |
Oct
(14) |
Nov
(16) |
Dec
(10) |
2004 |
Jan
(5) |
Feb
(10) |
Mar
(4) |
Apr
(8) |
May
(1) |
Jun
(5) |
Jul
(5) |
Aug
(4) |
Sep
(10) |
Oct
(3) |
Nov
(4) |
Dec
|
2005 |
Jan
(1) |
Feb
(4) |
Mar
|
Apr
(15) |
May
(12) |
Jun
(1) |
Jul
(4) |
Aug
(3) |
Sep
(6) |
Oct
(7) |
Nov
(21) |
Dec
(11) |
2006 |
Jan
(16) |
Feb
(12) |
Mar
(4) |
Apr
(6) |
May
(5) |
Jun
(9) |
Jul
|
Aug
(5) |
Sep
(1) |
Oct
(10) |
Nov
(4) |
Dec
(3) |
2007 |
Jan
(6) |
Feb
(4) |
Mar
(6) |
Apr
(11) |
May
(1) |
Jun
(21) |
Jul
|
Aug
(6) |
Sep
(2) |
Oct
(4) |
Nov
|
Dec
|
2008 |
Jan
(14) |
Feb
(1) |
Mar
(5) |
Apr
(22) |
May
(4) |
Jun
(1) |
Jul
(7) |
Aug
(5) |
Sep
(7) |
Oct
(3) |
Nov
|
Dec
(1) |
2009 |
Jan
(14) |
Feb
(1) |
Mar
(9) |
Apr
(5) |
May
(6) |
Jun
(7) |
Jul
(8) |
Aug
(3) |
Sep
|
Oct
|
Nov
(2) |
Dec
(4) |
2010 |
Jan
(2) |
Feb
|
Mar
(6) |
Apr
(6) |
May
(34) |
Jun
|
Jul
(8) |
Aug
(3) |
Sep
|
Oct
(5) |
Nov
(3) |
Dec
(1) |
2011 |
Jan
|
Feb
(4) |
Mar
(3) |
Apr
|
May
|
Jun
(5) |
Jul
(9) |
Aug
(5) |
Sep
(9) |
Oct
(3) |
Nov
(10) |
Dec
(1) |
2012 |
Jan
(1) |
Feb
(3) |
Mar
(2) |
Apr
|
May
(2) |
Jun
(1) |
Jul
(5) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(3) |
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
(3) |
Nov
(2) |
Dec
(9) |
2014 |
Jan
(1) |
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(3) |
2016 |
Jan
|
Feb
(4) |
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Michael H. <mh...@al...> - 2010-10-10 04:46:17
|
On 10/09/2010 11:30 PM, Cuneyt Ertal wrote: > Hi, > > I wan to plot more than one curve in the same graph using same function > with different parameters. The following code works without problem. > > from numpy import * > import Gnuplot > > gp = Gnuplot.Gnuplot(persist=1) > x = arange(0,1,0.01,dtype='float_') > d1 = Gnuplot.Data(x, ozfonksiyon(omegalar[0],x), title='1. ozdeger', > with_='lines') > d2 = Gnuplot.Data(x, ozfonksiyon(omegalar[1],x), title='2. ozdeger', > with_='lines') > d3 = Gnuplot.Data(x, ozfonksiyon(omegalar[2],x), title='3. ozdeger', > with_='lines') > d4 = Gnuplot.Data(x, ozfonksiyon(omegalar[3],x), title='4. ozdeger', > with_='lines') > d5 = Gnuplot.Data(x, ozfonksiyon(omegalar[4],x), title='5. ozdeger', > with_='lines') > gp.plot(d1,d2,d3,d4,d5) > > in this code ozfonksiyon and omegalar are user defined functions. But > what I want is to create plotitems (d1,d2,d3,d4,d5) in a for loop. I > modified the code like below, > > for ii in range(n): > datalar.append("Gnuplot.Data(x, > ozfonksiyon(omegalar["+str(ii)+"],x), with_='lines')") > gp.plot(*datalar) > > I get this error. > > /usr/bin/python -u > "/media/disk/doktora_tezi/tek_cubuk/python_files/CALISAN > KOD/fix_free_controlled_parametrelerin_degisimi_deneme.py" > > gnuplot> plot Gnuplot.Data(x, ozfonksiyon(omegalar[0],x), with_='lines') > , Gnuplot.Data(x, ozfonksiyon(omegalar[1],x), with_='lines') , > Gnuplot.Data(x, ozfonksiyon(omegalar[2],x), with_='lines') , > Gnuplot.Data(x, ozfonksiyon(omegalar[3],x), with_='lines') , > Gnuplot.Data(x, ozfonksiyon(omegalar[4],x), with_='lines') > ^ > line 0: ':' expected > > What am I doing wrong? You shouldn't make the elements of the datalar array into strings; leave them as Python objects: datalar = [] for ii in range(n): datalar.append( Gnuplot.Data(x, ozfonksiyon(omegalar[ii],x), with_='lines') ) gp.plot(*datalar) Michael -- Michael Haggerty mh...@al... http://softwareswirl.blogspot.com/ |
From: Cuneyt E. <cun...@gm...> - 2010-10-09 21:31:10
|
Hi, I wan to plot more than one curve in the same graph using same function with different parameters. The following code works without problem. from numpy import * import Gnuplot gp = Gnuplot.Gnuplot(persist=1) x = arange(0,1,0.01,dtype='float_') d1 = Gnuplot.Data(x, ozfonksiyon(omegalar[0],x), title='1. ozdeger', with_='lines') d2 = Gnuplot.Data(x, ozfonksiyon(omegalar[1],x), title='2. ozdeger', with_='lines') d3 = Gnuplot.Data(x, ozfonksiyon(omegalar[2],x), title='3. ozdeger', with_='lines') d4 = Gnuplot.Data(x, ozfonksiyon(omegalar[3],x), title='4. ozdeger', with_='lines') d5 = Gnuplot.Data(x, ozfonksiyon(omegalar[4],x), title='5. ozdeger', with_='lines') gp.plot(d1,d2,d3,d4,d5) in this code ozfonksiyon and omegalar are user defined functions. But what I want is to create plotitems (d1,d2,d3,d4,d5) in a for loop. I modified the code like below, for ii in range(n): datalar.append("Gnuplot.Data(x, ozfonksiyon(omegalar["+str(ii)+"],x), with_='lines')") gp.plot(*datalar) I get this error. /usr/bin/python -u "/media/disk/doktora_tezi/tek_cubuk/python_files/CALISAN KOD/fix_free_controlled_parametrelerin_degisimi_deneme.py" gnuplot> plot Gnuplot.Data(x, ozfonksiyon(omegalar[0],x), with_='lines') , Gnuplot.Data(x, ozfonksiyon(omegalar[1],x), with_='lines') , Gnuplot.Data(x, ozfonksiyon(omegalar[2],x), with_='lines') , Gnuplot.Data(x, ozfonksiyon(omegalar[3],x), with_='lines') , Gnuplot.Data(x, ozfonksiyon(omegalar[4],x), with_='lines') ^ line 0: ':' expected What am I doing wrong? Best regards, Cuneyt. |
From: Felix S. <fel...@ui...> - 2010-08-16 13:35:41
|
Hi Benny, thanks for your answer. The solution is nice enough for me and works just fine :-). Felix bm...@ca... wrote: > Quoting Felix Schueller<fel...@ui...>: > >> Hi there, >> >> i got a question on how to best handle NaN values. >> >> I'm plotting 3 x-y curves into one plot (data comes from 3 files which >> are read and processed earlier in my code). >> Sometimes one of them has NaN-values at the y=0 point. If i just convert >> the NaN-values as everthing else: >> >> data_array.append(float(THENANVALUE)) >> >> the data array contains the nan and my values just fine. However if i >> then proceed to g.plot(...), i get a >> >> line 0: Bad data on line 1 >> >> error. >> >> What i would like to have, is a plot where the undefined lowest value is >> ignored and plotting starts at the first defined value. >> >> Is there a simple solution to this/ any suggestion? > > You need to remove the NaN before plotting. This is also the behavior > I would want, not that things are plotted with undefined values > without me knowing it. > > To obtain only the nonNan from a x,y plot: > z = N.asarray([[x,y] for x,y in zip(a,b) if not math.isnan(x) ]) > then plot z[:,0] and z[:,1] instead of x,y > > Probably there are nicer ways to do this filtering, a masked array perhaps. > > Benny >> Thanks in advance for any answers! :-) >> >> Felix >> >> >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by >> >> Make an app they can't live without >> Enter the BlackBerry Developer Challenge >> http://p.sf.net/sfu/RIM-dev2dev >> _______________________________________________ >> Gnuplot-py-users mailing list >> Gnu...@li... >> https://lists.sourceforge.net/lists/listinfo/gnuplot-py-users >> > > > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > Gnuplot-py-users mailing list > Gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-py-users |
From: <bm...@ca...> - 2010-08-16 12:38:29
|
Quoting Felix Schueller <fel...@ui...>: > Hi there, > > i got a question on how to best handle NaN values. > > I'm plotting 3 x-y curves into one plot (data comes from 3 files which > are read and processed earlier in my code). > Sometimes one of them has NaN-values at the y=0 point. If i just convert > the NaN-values as everthing else: > > data_array.append(float(THENANVALUE)) > > the data array contains the nan and my values just fine. However if i > then proceed to g.plot(...), i get a > > line 0: Bad data on line 1 > > error. > > What i would like to have, is a plot where the undefined lowest value is > ignored and plotting starts at the first defined value. > > Is there a simple solution to this/ any suggestion? You need to remove the NaN before plotting. This is also the behavior I would want, not that things are plotted with undefined values without me knowing it. To obtain only the nonNan from a x,y plot: z = N.asarray([[x,y] for x,y in zip(a,b) if not math.isnan(x) ]) then plot z[:,0] and z[:,1] instead of x,y Probably there are nicer ways to do this filtering, a masked array perhaps. Benny > > Thanks in advance for any answers! :-) > > Felix > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > Gnuplot-py-users mailing list > Gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-py-users > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. |
From: Felix S. <fel...@ui...> - 2010-08-16 11:34:01
|
Hi there, i got a question on how to best handle NaN values. I'm plotting 3 x-y curves into one plot (data comes from 3 files which are read and processed earlier in my code). Sometimes one of them has NaN-values at the y=0 point. If i just convert the NaN-values as everthing else: data_array.append(float(THENANVALUE)) the data array contains the nan and my values just fine. However if i then proceed to g.plot(...), i get a line 0: Bad data on line 1 error. What i would like to have, is a plot where the undefined lowest value is ignored and plotting starts at the first defined value. Is there a simple solution to this/ any suggestion? Thanks in advance for any answers! :-) Felix |
From: Alan G I. <ai...@am...> - 2010-07-20 15:48:31
|
On 7/20/2010 11:43 AM, Colin Reisterer wrote: > g.plot[(x1,y1),(x2,y2),(x3,y3),.......,(xn,yn)] > > The program works fine and displays correctly, but I would prefer to > have the graph animated Possibly OFF TOPIC. I'd use Matplotlib for this. E.g., see the TSPlot class at http://econpy.googlecode.com/svn/trunk/abm/gridworld/gridworld.py hth, Alan Isaac |
From: Colin R. <col...@gm...> - 2010-07-20 15:43:54
|
Hi, I have a program that generates a list of tuples (x,y) pairs that I am plotting to visualize with Gnuplot. for example: g.plot[(x1,y1),(x2,y2),(x3,y3),.......,(xn,yn)] The program works fine and displays correctly, but I would prefer to have the graph animated, for example to view the graph plot in real time form point 1 to point n. I tried studying the animated examples in GNUplot demos but didn't get very far... Any suggestions? Thanks for your time! -- Colin M. Reisterer Department of Biological Engineering Massachusetts Institute of Technology 2012 |
From: Michael H. <mh...@al...> - 2010-07-19 11:35:30
|
Milan SKOCIC wrote: > I'm student and I use often Gnuplot to plot data and different > functions. That's why I decided to write a front-end with Python & > PyGTK. > > The gnuplot.py module is very useful but reading the > documentation, I didn't find how to catch errors given by gnuplot (for > example: "undefined variable t"). > > Does someone know how to do that? Currently, Gnuplot.py does not even read the output of gnuplot, let alone try to understand errors that it writes to its output. Presumably one would have to open a two-way connection to gnuplot then listen for such messages on the gnuplot process's stdout and/or stderr, and it would probably require a little bit of intelligence to distinguish error messages from simple informational messages. If this were implemented it would open the way to doing a couple of other useful things, like reading the output from gnuplot "fit" commands. FWIW, I think PyGTK is a better choice than tkinter, as it is more modern, has more features, and looks much better. Most people probably install using a package manager, in which case installing PyGTK should be an insignificant amount of work. Michael |
From: Milan S. <mil...@gm...> - 2010-07-18 22:14:23
|
On Sun, 2010-07-18 at 12:04 -0400, Alan G Isaac wrote: > On 7/18/2010 10:38 AM, Milan SKOCIC wrote: > > I decided to write a front-end with Python& > > PyGTK. > > Wouldn't using Tkinter give you a larger audience? > > Alan Isaac > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gnuplot-py-users mailing list > Gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-py-users Well, I don't know if using Tkinter would give me a larger audience maybe you're right. I'm not an experimented programmer, I do that in my free time. I have chosen PyGTK because I have already used GTK+. I have already written the program but I only cannot catch errors given by Gnuplot when user enters an invalid function. Milan SKOCIC |
From: Alan G I. <ai...@am...> - 2010-07-18 16:05:13
|
On 7/18/2010 10:38 AM, Milan SKOCIC wrote: > I decided to write a front-end with Python& > PyGTK. Wouldn't using Tkinter give you a larger audience? Alan Isaac |
From: Milan S. <mil...@gm...> - 2010-07-18 14:38:48
|
Hello, I'm student and I use often Gnuplot to plot data and different functions. That's why I decided to write a front-end with Python & PyGTK. The gnuplot.py module is very useful but reading the documentation, I didn't find how to catch errors given by gnuplot (for example: "undefined variable t"). Does someone know how to do that? Thanks :) Milan SKOCIC mil...@gm... |
From: Yann T. <yan...@bu...> - 2010-07-09 20:34:15
|
I figured things out: I was not correctly setting my PYTHONPATH environment variable. __init__.py in the Gnuplot directory makes the directory a package, so that import Gnuplot works as it should. Correct me if I'm wrong. Thanks, Yann <gnu...@li...> |
From: Yann T. <yan...@bu...> - 2010-07-09 19:54:05
|
Hopefully there is an obvious answer to this question: Am I supposed to copy some file to create Gnuplot.py? I'm installing to a non-default location, so I run python setup.py install --prefix /my/location Everything works great without issue, or so it seems. But I don't get a Gnuplot.py file. It doesn't come in the 1.8 tar.gz file and it's not in the repository, so I thought setup.py would create this file. Sorry if I've overlooked something strait forward in README.txt. I'm running on a Linux machine and Python 2.4.3 gnuplot 4.2 patchlevel 4 numpy 1.3.0 Thanks, Yann |
From: Sandy Y. <cd...@li...> - 2010-05-31 18:55:28
|
Fabi Rabarison thank you very much I will try it by the way can you help find some help about gnuplot-py for example where can I read aobut Graph('set nomultiplot') and others features Best Regards Sandy > Date: Mon, 31 May 2010 18:21:27 +0200 > Subject: Re: [Gnuplot-py-users] is it possible to continue to Debug when figure is created?? > From: fa...@ai... > To: cd...@li... > CC: ben...@gm...; gnu...@li... > > Hi, > > You can use multiplot instead of replot...this allows you more freedom and > will skip you from the annoying limited number of threads. Example; > > > Graph=Gnuplot.Gnuplot(debug=1,persits=1) > Graph('set multiplot') > > Graph.plot ( data 1, data2... (anything you want to plot)) > > If you plot several graphs at the same time, like using a loop, > > for i in irange: > Graph.plot(data[i]) > > Graph('set nomultiplot') > > > > These 'set multiplot' and 'set nomultiplot' are > really essential. > > Cheers > > > -- > Fabi Rabarison > Strathclyde University > > > > > > > > > > > > ok > > thanks > > by the way this program gives mistake > > at > > > > finally: > > os.unlink(filename1) > > os.unlink(filename2) > > > > WindowsError: [Error 32] The process cannot access the file because it is > > being used by another process: > > 'c:\\users\\sandy~1.ste\\appdata\\local\\temp\\tmpdkamdd' > > File "C:\start_Feb_8\my_PY_code\May_22_gnuplot_test.py", line 335, in > > <module> > > main() > > File "C:\start_Feb_8\my_PY_code\May_22_gnuplot_test.py", line 330, in main > > os.unlink(filename2) > > S > > > > Date: Thu, 20 May 2010 09:50:12 +0200 > > From: ben...@gm... > > To: cd...@li... > > CC: gnu...@li... > > Subject: Re: [Gnuplot-py-users] is it possible to continue to Debug > > when figure is created?? > > > > > > > > 2010/5/18 Sandy Ydnas <cd...@li...> > > > > > > > > > > > > > > ok > > > > now the Gnuplot istalled > > > > and I do not have errors for > > > > > > > > from numpy import * > > > > import Gnuplot > > > > Gnuplot.GnuplotOpts.prefer_inline_data = 1 > > > > > > > > Gnuplot.GnuplotOpts.prefer_fifo_data = 0 > > > > > > > > g = Gnuplot.Gnuplot(persist=0) > > > > > > > > what next any simple example file can be helpful > > > > The Gnuplot installation contains a test.py with examples and showing how > > to plot with gnuplot > > > > > > Benny > > > > > > _________________________________________________________________ > > Hotmail: Trusted email with powerful SPAM protection. > > https://signup.live.com/signup.aspx?id=60969------------------------------------------------------------------------------ > > > > _______________________________________________ > > Gnuplot-py-users mailing list > > Gnu...@li... > > https://lists.sourceforge.net/lists/listinfo/gnuplot-py-users > > > > _________________________________________________________________ Hotmail: Powerful Free email with security by Microsoft. https://signup.live.com/signup.aspx?id=60969 |
From: Fabi R. <fa...@ai...> - 2010-05-31 17:03:55
|
Hi, You can use multiplot instead of replot...this allows you more freedom and will skip you from the annoying limited number of threads. Example; Graph=Gnuplot.Gnuplot(debug=1,persits=1) Graph('set multiplot') Graph.plot ( data 1, data2... (anything you want to plot)) If you plot several graphs at the same time, like using a loop, for i in irange: Graph.plot(data[i]) Graph('set nomultiplot') These 'set multiplot' and 'set nomultiplot' are really essential. Cheers -- Fabi Rabarison Strathclyde University > > > > > ok > thanks > by the way this program gives mistake > at > > finally: > os.unlink(filename1) > os.unlink(filename2) > > WindowsError: [Error 32] The process cannot access the file because it is > being used by another process: > 'c:\\users\\sandy~1.ste\\appdata\\local\\temp\\tmpdkamdd' > File "C:\start_Feb_8\my_PY_code\May_22_gnuplot_test.py", line 335, in > <module> > main() > File "C:\start_Feb_8\my_PY_code\May_22_gnuplot_test.py", line 330, in main > os.unlink(filename2) > S > > Date: Thu, 20 May 2010 09:50:12 +0200 > From: ben...@gm... > To: cd...@li... > CC: gnu...@li... > Subject: Re: [Gnuplot-py-users] is it possible to continue to Debug > when figure is created?? > > > > 2010/5/18 Sandy Ydnas <cd...@li...> > > > > > > > ok > > now the Gnuplot istalled > > and I do not have errors for > > > > from numpy import * > > import Gnuplot > > Gnuplot.GnuplotOpts.prefer_inline_data = 1 > > > > Gnuplot.GnuplotOpts.prefer_fifo_data = 0 > > > > g = Gnuplot.Gnuplot(persist=0) > > > > what next any simple example file can be helpful > > The Gnuplot installation contains a test.py with examples and showing how > to plot with gnuplot > > > Benny > > > _________________________________________________________________ > Hotmail: Trusted email with powerful SPAM protection. > https://signup.live.com/signup.aspx?id=60969------------------------------------------------------------------------------ > > _______________________________________________ > Gnuplot-py-users mailing list > Gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-py-users > |
From: Sandy Y. <cd...@li...> - 2010-05-21 14:14:27
|
ok thanks by the way this program gives mistake at finally: os.unlink(filename1) os.unlink(filename2) WindowsError: [Error 32] The process cannot access the file because it is being used by another process: 'c:\\users\\sandy~1.ste\\appdata\\local\\temp\\tmpdkamdd' File "C:\start_Feb_8\my_PY_code\May_22_gnuplot_test.py", line 335, in <module> main() File "C:\start_Feb_8\my_PY_code\May_22_gnuplot_test.py", line 330, in main os.unlink(filename2) S Date: Thu, 20 May 2010 09:50:12 +0200 From: ben...@gm... To: cd...@li... CC: gnu...@li... Subject: Re: [Gnuplot-py-users] is it possible to continue to Debug when figure is created?? 2010/5/18 Sandy Ydnas <cd...@li...> ok now the Gnuplot istalled and I do not have errors for from numpy import * import Gnuplot Gnuplot.GnuplotOpts.prefer_inline_data = 1 Gnuplot.GnuplotOpts.prefer_fifo_data = 0 g = Gnuplot.Gnuplot(persist=0) what next any simple example file can be helpful The Gnuplot installation contains a test.py with examples and showing how to plot with gnuplot Benny _________________________________________________________________ Hotmail: Trusted email with powerful SPAM protection. https://signup.live.com/signup.aspx?id=60969 |
From: Benny M. <ben...@gm...> - 2010-05-20 07:50:20
|
2010/5/18 Sandy Ydnas <cd...@li...> > ok > now the Gnuplot istalled > and I do not have errors for > > from numpy import * > > import Gnuplot > Gnuplot.GnuplotOpts.prefer_inline_data = 1 > > Gnuplot.GnuplotOpts.prefer_fifo_data = 0 > > g = Gnuplot.Gnuplot(persist=0) > > what next any simple example file can be helpful > The Gnuplot installation contains a test.py with examples and showing how to plot with gnuplot Benny |
From: Sandy Y. <cd...@li...> - 2010-05-18 16:45:38
|
it is what I got error: Setup script exited with 1 pls see below C:\start_Feb_8\programs\liveplots-0.3>python setup.py install running install running bdist_egg running egg_info writing requirements to liveplots.egg-info\requires.txt writing liveplots.egg-info\PKG-INFO writing top-level names to liveplots.egg-info\top_level.txt writing dependency_links to liveplots.egg-info\dependency_links.txt reading manifest file 'liveplots.egg-info\SOURCES.txt' writing manifest file 'liveplots.egg-info\SOURCES.txt' installing library code to build\bdist.win32\egg running install_lib running build_py creating build creating build\lib creating build\lib\liveplots copying liveplots\filemonitor.py -> build\lib\liveplots copying liveplots\xmlrpcserver.py -> build\lib\liveplots copying liveplots\__init__.py -> build\lib\liveplots creating build\bdist.win32 creating build\bdist.win32\egg creating build\bdist.win32\egg\liveplots copying build\lib\liveplots\filemonitor.py -> build\bdist.win32\egg\liveplots copying build\lib\liveplots\xmlrpcserver.py -> build\bdist.win32\egg\liveplots copying build\lib\liveplots\__init__.py -> build\bdist.win32\egg\liveplots byte-compiling build\bdist.win32\egg\liveplots\filemonitor.py to filemonitor.pyc byte-compiling build\bdist.win32\egg\liveplots\xmlrpcserver.py to xmlrpcserver.p yc byte-compiling build\bdist.win32\egg\liveplots\__init__.py to __init__.pyc creating build\bdist.win32\egg\EGG-INFO copying liveplots.egg-info\PKG-INFO -> build\bdist.win32\egg\EGG-INFO copying liveplots.egg-info\SOURCES.txt -> build\bdist.win32\egg\EGG-INFO copying liveplots.egg-info\dependency_links.txt -> build\bdist.win32\egg\EGG-INF O copying liveplots.egg-info\requires.txt -> build\bdist.win32\egg\EGG-INFO copying liveplots.egg-info\top_level.txt -> build\bdist.win32\egg\EGG-INFO copying liveplots.egg-info\zip-safe -> build\bdist.win32\egg\EGG-INFO creating dist creating 'dist\liveplots-0.3-py2.6.egg' and adding 'build\bdist.win32\egg' to it removing 'build\bdist.win32\egg' (and everything under it) Processing liveplots-0.3-py2.6.egg Copying liveplots-0.3-py2.6.egg to c:\python26\lib\site-packages Adding liveplots 0.3 to easy-install.pth file Installed c:\python26\lib\site-packages\liveplots-0.3-py2.6.egg Processing dependencies for liveplots==0.3 Searching for pyinotify>=0.8.9 Reading http://pypi.python.org/simple/pyinotify/ Reading http://trac.dbzteam.org/pyinotify Reading http://git.dbzteam.org/?p=pyinotify.git;a=snapshot;h=HEAD;sf=tgz Best match: pyinotify 0.8.9 Downloading http://seb.dbzteam.org/pub/pyinotify/releases/pyinotify-0.8.9.tar.gz Processing pyinotify-0.8.9.tar.gz Running pyinotify\setup.py -q bdist_egg --dist-dir c:\users\sandy~1.ste\appdata\ local\temp\easy_install-c0zkyw\pyinotify\egg-dist-tmp-ks2kj8 inotify is not available under win32 error: Setup script exited with 1 C:\start_Feb_8\programs\liveplots-0.3> From: fcc...@gm... Date: Tue, 18 May 2010 17:15:22 +0100 Subject: Re: [Gnuplot-py-users] is it possible to continue to Debug when figure is created?? To: cd...@li... CC: gnu...@li... I use Linux, but I'll give it a try: on a command prompt go to the liveplots source diretory, the one with setup.py in it and type c:\python2.6.exe setup.py install on the line above use the actual path of your python executable. That line should install liveplots, assuming you have all the pre-requisites: (numpy, gnuplot, etc...) and an internet connection so that it can download extra dependencies. However, it strikes me that since you don't know much about Python, Liveplots will not be of immediate use to you since it is supposed to be called from within Python programs. good luck, Flávio On Tue, May 18, 2010 at 5:03 PM, Sandy Ydnas <cd...@li...> wrote: 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. Sign up now. -- Flávio Codeço Coelho _________________________________________________________________ Hotmail: Trusted email with Microsoft’s powerful SPAM protection. https://signup.live.com/signup.aspx?id=60969 |
From: Flavio C. <fcc...@gm...> - 2010-05-18 16:38:24
|
In the Liveplots source package theres a file called simple.py with a few simple examples of liveplots: or get it here: http://code.google.com/p/liveplots/source/browse/Examples/simple.py Flávio On Tue, May 18, 2010 at 5:25 PM, Sandy Ydnas <cd...@li...> wrote: > ok > now the Gnuplot istalled > and I do not have errors for > > from numpy import * > > import Gnuplot > Gnuplot.GnuplotOpts.prefer_inline_data = 1 > > Gnuplot.GnuplotOpts.prefer_fifo_data = 0 > > g = Gnuplot.Gnuplot(persist=0) > > what next any simple example file can be helpful > Sandy > > > ------------------------------ > Date: Tue, 18 May 2010 09:17:42 +0200 > > Subject: Re: [Gnuplot-py-users] is it possible to continue to Debug when > figure is created?? > From: ben...@gm... > To: cd...@li... > CC: gnu...@li... > > > > 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 > > > > ------------------------------ > Hotmail: Trusted email with powerful SPAM protection. Sign up now.<https://signup.live.com/signup.aspx?id=60969> > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Gnuplot-py-users mailing list > Gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-py-users > > -- Flávio Codeço Coelho |
From: Sandy Y. <cd...@li...> - 2010-05-18 16:25:53
|
ok now the Gnuplot istalled and I do not have errors for from numpy import * import Gnuplot Gnuplot.GnuplotOpts.prefer_inline_data = 1 Gnuplot.GnuplotOpts.prefer_fifo_data = 0 g = Gnuplot.Gnuplot(persist=0) what next any simple example file can be helpful Sandy Date: Tue, 18 May 2010 09:17:42 +0200 Subject: Re: [Gnuplot-py-users] is it possible to continue to Debug when figure is created?? From: ben...@gm... To: cd...@li... CC: gnu...@li... 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 _________________________________________________________________ Hotmail: Trusted email with powerful SPAM protection. https://signup.live.com/signup.aspx?id=60969 |
From: Flavio C. <fcc...@gm...> - 2010-05-18 16:17:19
|
I use Linux, but I'll give it a try: on a command prompt go to the liveplots source diretory, the one with setup.py in it and type c:\python2.6.exe setup.py install on the line above use the actual path of your python executable. That line should install liveplots, assuming you have all the pre-requisites: (numpy, gnuplot, etc...) and an internet connection so that it can download extra dependencies. However, it strikes me that since you don't know much about Python, Liveplots will not be of immediate use to you since it is supposed to be called from within Python programs. good luck, Flávio On Tue, May 18, 2010 at 5:03 PM, Sandy Ydnas <cd...@li...> wrote: > 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.<https://signup.live.com/signup.aspx?id=60969> > > > > > -- > Flávio Codeço Coelho > > > ------------------------------ > Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. Sign up > now. <https://signup.live.com/signup.aspx?id=60969> > > > > > -- > Flávio Codeço Coelho > > > ------------------------------ > Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. Sign up > now. <https://signup.live.com/signup.aspx?id=60969> > -- Flávio Codeço Coelho |
From: Flavio C. <fcc...@gm...> - 2010-05-18 16:08:02
|
Sandy, Someone with access to a windows machine will have to help you here. Flávio On Tue, May 18, 2010 at 4:56 PM, Sandy Ydnas <cd...@li...> wrote: > I try to do it but installation seems to be complicated in Vista for > beginner > > for example > what is it > > 3. Install by changing to the directory and typing "python setup.py > > install". > > > > Installation > > ------------ > > > > Quick instructions: > > > > 1. Download gnuplot-py-1.8.tar.gz or gnuplot-py-1.8.zip. > > > > 2. Extract the archive to a temporary directory. > > > > 3. Install by changing to the directory and typing "python setup.py > > install". > > > or > > > > > . So to run Gnuplot.py on Windows, you need to make sure that > pgnuplot.exe is installed. > > > in > > Installation on Windows > > ----------------------- > > > > I don't run Windows, but thanks to the help of users there is now a > > way to use Gnuplot.py on that platform. Any feedback or additional > > suggestions having to do with Windows would be especially appreciated. > > > > Because the main MS-Windows gnuplot executable (wgnuplot.exe) doesn't > > accept commands on standard input, Gnuplot.py cannot communicate with > > it directly. However, there is a simple little program called > > `pgnuplot.exe' that accepts commands on stdin and passes them to > > wgnuplot. So to run Gnuplot.py on Windows, you need to make sure that > > pgnuplot.exe is installed. It comes with gnuplot since at least > > version 3.7.1. Alternatively you can get pgnuplot.exe alone by > > downloading `testing/windows-stdin.zip' from one of the gnuplot > > archives (e.g., > > <ftp://ftp.gnuplot.info/pub/gnuplot/testing/windows-stdin.zip>). > > > > Continue installing Gnuplot.py by following the instructions in the > > previous section. > > > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > another question > is it possilbe to use (see) simulataneusly several figures like in Matalb?? > > Sandy > > > > Date: Tue, 18 May 2010 10:13:24 -0400 > > From: ai...@am... > > To: gnu...@li... > > > Subject: Re: [Gnuplot-py-users] is it possible to continue to Debug when > figure is created?? > > > > On 5/18/2010 9:47 AM, Sandy Ydnas wrote: > > > NameError: name 'Gnuplot' is not defined > > > > http://gnuplot-py.sourceforge.net/ > > > > hth, > > > Alan Isaac > > > > > ------------------------------------------------------------------------------ > > > > _______________________________________________ > > Gnuplot-py-users mailing list > > Gnu...@li... > > https://lists.sourceforge.net/lists/listinfo/gnuplot-py-users > > ------------------------------ > Hotmail: Trusted email with Microsoft’s powerful SPAM protection. Sign up > now. <https://signup.live.com/signup.aspx?id=60969> > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Gnuplot-py-users mailing list > Gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-py-users > > -- Flávio Codeço Coelho |
From: Flavio C. <fcc...@gm...> - 2010-05-18 16:05:23
|
I am open for discussing how the functionality I have in Liveplots could be moved upstream into gnuplot.py. It would definitely be useful to have more eyes looking at my code and helping to identify bugs. I believe the first step will be for someone familiar with Gnuplot.py code to have a Look at the liveplots source (it's tiny) and determine what would be useful to "transplant" Flávio On Tue, May 18, 2010 at 4:47 PM, Benny Malengier <ben...@gm...>wrote: > > > 2010/5/18 Flavio Coelho <fcc...@gm...> > > Hi Allan, >> >> I am the author of Liveplots and it is quite an specific project, which >> happens to use Gnuplot.py as many other projects do. I don' see what benefit >> would come from joining the two. Though naturally, being open-source >> projects, they are free to share code as needed, so that there are no >> unnecessary duplication of development effort. >> > > First, I have not looked at the liveplots code, only the blog posting. > > I think there are probably many users of gnuplot.py that do the drawing in > a separate process, so as not to hold up the numerics (waiting for data to > be written, ...). Moving such a construct, with a queue system, inside of > Gnuplot would be benificial, so that users can have a basic version of that > without needing to bother about processes. > > Benny > > > >> cheers, >> >> Flávio >> >> >> On Tue, May 18, 2010 at 3:36 PM, Alan G Isaac <ai...@am...>wrote: >> >>> On 5/18/2010 9:58 AM, Flavio Coelho wrote: >>> > http://code.google.com/p/liveplots/ >>> >>> Might making this part of Gnuplot.py be appropriate? >>> >>> Alan Isaac >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Gnuplot-py-users mailing list >>> Gnu...@li... >>> https://lists.sourceforge.net/lists/listinfo/gnuplot-py-users >>> >> >> >> >> -- >> Flávio Codeço Coelho >> >> >> >> ------------------------------------------------------------------------------ >> >> >> _______________________________________________ >> Gnuplot-py-users mailing list >> Gnu...@li... >> https://lists.sourceforge.net/lists/listinfo/gnuplot-py-users >> >> > -- Flávio Codeço Coelho |
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 |
From: Sandy Y. <cd...@li...> - 2010-05-18 16:01:14
|
too complicate for beginner can you pls help to find some simple working exampe code? Sandy Date: Tue, 18 May 2010 17:47:29 +0200 From: ben...@gm... To: fcc...@gm... CC: ai...@am...; gnu...@li... Subject: Re: [Gnuplot-py-users] is it possible to continue to Debug when figure is created?? 2010/5/18 Flavio Coelho <fcc...@gm...> Hi Allan, I am the author of Liveplots and it is quite an specific project, which happens to use Gnuplot.py as many other projects do. I don' see what benefit would come from joining the two. Though naturally, being open-source projects, they are free to share code as needed, so that there are no unnecessary duplication of development effort. First, I have not looked at the liveplots code, only the blog posting. I think there are probably many users of gnuplot.py that do the drawing in a separate process, so as not to hold up the numerics (waiting for data to be written, ...). Moving such a construct, with a queue system, inside of Gnuplot would be benificial, so that users can have a basic version of that without needing to bother about processes. Benny cheers, Flávio On Tue, May 18, 2010 at 3:36 PM, Alan G Isaac <ai...@am...> wrote: On 5/18/2010 9:58 AM, Flavio Coelho wrote: > http://code.google.com/p/liveplots/ Might making this part of Gnuplot.py be appropriate? Alan Isaac ------------------------------------------------------------------------------ _______________________________________________ Gnuplot-py-users mailing list Gnu...@li... https://lists.sourceforge.net/lists/listinfo/gnuplot-py-users -- Flávio Codeço Coelho ------------------------------------------------------------------------------ _______________________________________________ Gnuplot-py-users mailing list Gnu...@li... https://lists.sourceforge.net/lists/listinfo/gnuplot-py-users _________________________________________________________________ Hotmail: Trusted email with powerful SPAM protection. https://signup.live.com/signup.aspx?id=60969 |