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: Tyler C. <trc...@gm...> - 2010-04-12 20:40:38
|
Hello I'm trying to plot hodographs slmlar to this so far i have drawn the points and lines just fine but have ran into some issues labeling the points. here is an example of what I'm looking for. http://www.tornadohead.com/eventhodos/050403top18.gif When i try and use this to draw the labels that aren't tied to the points it works but its not in polar coords? even tho the chart is. for x,y in zip(dir,speed): xrad = math.radians(x) g('set label "%d %d" at %d,%d' % (x,y,x,y)) also i need to figure out how to label points with a height. so far i have this it plots the a sample of lines and points but the labels are all wrong i cant seem to find anything on the net about this. Tyler. from numpy import * import Gnuplot, Gnuplot.funcutils import math # in deg / speed dir = 180,90,270 speed = 88,29,55 out = [] for x,y in zip(dir,speed): xrad = math.radians(x) out.append([xrad,y]) plot1 = Gnuplot.PlotItems.Data(out, with_="lines", title="Quadratic") plot2 = Gnuplot.PlotItems.Data(out, with_="points", title="G00se") # Plot with GNUPLOT g = Gnuplot.Gnuplot(debug=1) g('set terminal png') g('set output "output.png"') g('set size square') g('set xrange [-100:100]') g('set yrange [-100:100]') g('set polar') g('set grid polar') g('set size ratio -1') for x,y in zip(dir,speed): xrad = math.radians(x) g('set label "%d %d" at %d,%d' % (x,y,x,y)) g.plot(plot1,plot2) |
From: Claes H <cla...@gm...> - 2010-04-12 15:31:43
|
Hi, When I use Gnuplot-py it always pops up two windows, one graph window and one terminal as it runs. Also, they are stealing focus Is there any way to avoid that, i.e. run it in the background? Thanks, Claes -- C l a e s H o l m e r s o n |
From: Benny M. <ben...@gm...> - 2010-03-12 20:31:20
|
2010/3/12 Rajan Gurjar <rjn...@gm...>: > Thanks Benny, > I think I tried it already and if I recollect it did not work, but I will > try again when I get home (I have been at it for the last two weeks > endlessly booting my computer million times by now). > However, I have dug out a Win ME at work and followed the same install > procedures as I did at home on my Win ME or on my Win XP. And everything ran > perfectly well. I could run the test.py without any problems. In fact I used > older versions of python 2.4 and gnuplot 4.2. > This suggests something wrong with my Window ME installation? I am going to > try and do a system restore to an earlier date. I recently downloaded > "registry patrol" software from a vendor and it may have blocked certain > applications while cleaning my registry. > > I notice that I cannot see the .gih file in gnuplot\bin. Also when I click > on the gnuplot.hlp file I get a message (I cannot recall exactly and so I am > giving a distorted version here -sorry about that) : Cannot open it because > the file cannot be found or being used. It may have been renamed.... > I however, see all these files at my office WinME and can open the hlp > files. Isn't the .gih file used during a gnuplot run? So I am happy that > this is not a real bug for WinME in general but some nasty occurrence in my > machine. Would you have any suggestions? No. I stopped with windows after Win95. It seems like disk or OS problem on your machine. I'd say reinstall gnuplot and Gnuplot.py Benny |
From: Rajan G. <rjn...@gm...> - 2010-03-12 17:19:51
|
Thanks Benny, I think I tried it already and if I recollect it did not work, but I will try again when I get home (I have been at it for the last two weeks endlessly booting my computer million times by now). However, I have dug out a Win ME at work and followed the same install procedures as I did at home on my Win ME or on my Win XP. And everything ran perfectly well. I could run the test.py without any problems. In fact I used older versions of python 2.4 and gnuplot 4.2. This suggests something wrong with my Window ME installation? I am going to try and do a system restore to an earlier date. I recently downloaded "registry patrol" software from a vendor and it may have blocked certain applications while cleaning my registry. I notice that I cannot see the .gih file in gnuplot\bin. Also when I click on the gnuplot.hlp file I get a message (I cannot recall exactly and so I am giving a distorted version here -sorry about that) : Cannot open it because the file cannot be found or being used. It may have been renamed.... I however, see all these files at my office WinME and can open the hlp files. Isn't the .gih file used during a gnuplot run? So I am happy that this is not a real bug for WinME in general but some nasty occurrence in my machine. Would you have any suggestions? Thanks and appreciate your response, Rajan On Fri, Mar 12, 2010 at 4:27 AM, Benny Malengier <ben...@gm...>wrote: > Try giving direct commands with gnuplot in python shell, and see if > gnuplot can open a window on your OS. > > So: > > $ python > Python 2.6.4 (r264:75706, Dec 7 2009, 18:43:55) > [GCC 4.4.1] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > > >>> import Gnuplot > >>> a = Gnuplot.Gnuplot() > >>> a('plot sin(x)') > >>> > > You should see a gnuplot window open up that shows sin(x). > > Also, check the bug tracker, > https://sourceforge.net/tracker/?group_id=17434&atid=117434 , there > are several patches posted there for windows. By lack of windows to > test, and lack of other windows users to test it, I think those do not > get added to the code. > > Benny > 2010/3/10 Rajan Gurjar <rjn...@gm...>: > > Hi, > > I have gnuplot-py-1.8 (is residing in site-packages dir of Python) > > Python 2.5 (residing in C) > > Gnuplot v4.4 (residing in C:\Program Files and also a different named > copy > > in C:\). > > > > O.S: Win ME (I only hope this does not discourage you from reading > further) > > > > I have been able to run python codes with numpy without much issue but > never > > tried plotting using Gnuplot. I would use Excel to plot the data files > until > > I decided Gnuplot was the way to go. > > > > The binary setup installation ran well for all. I think all the paths are > > defined - because I am able to give a command "python" from any directory > > and I get to the python shell immediately. > > > > Also typing "wgnuplot" or "pgnuplot" from any directory I am able to open > > the Gnuplot terminal and plot functions such as sinx/x etc. > > > > However, when I go to Python25\Lib\site-packages\Gnuplot and run 'python > > test.py' from command window or run test.py from IDLE, the computer > > immediately crashes and I have to reboot. > > > > Earlier, I would get it to work till > > > > print ( > > 'This program exercises many of the features of Gnuplot.py. > The\n' > > 'commands that are actually sent to gnuplot are printed for > your\n' > > 'enjoyment.' > > ) > > > > wait('Popping up a blank gnuplot window on your screen.') > > g = Gnuplot.Gnuplot(debug=1) > > g.clear() > > > > # Make two temporary files: > > if hasattr(tempfile, 'mkstemp'): > > (fd, filename1,) = tempfile.mkstemp(text=1) > > f = os.fdopen(fd, 'w') > > (fd, filename2,) = tempfile.mkstemp(text=1) > > else: > > filename1 = tempfile.mktemp() > > f = open(filename1, 'w') > > filename2 = tempfile.mktemp() > > try: > > for x in numpy.arange(100.)/5. - 10.: > > f.write('%s %s %s\n' % (x, math.cos(x), math.sin(x))) > > f.close() > > > > print '############### test Func > > ###################################' > > wait('Plot a gnuplot-generated function') > > > > And then the screen would freeze and I had to reboot. > > > > However, I never get the plot window and the Gnuplot terminal to open up. > > The reason I say the above commands worked is because I can see the > printout > > in my DOS command window. I can also see the tmp files in the TEMP > > directory. > > > > > > I tried playing around mainly changing the paths or changing the > directory > > of Gnuplot from Program Files to just C:\ - thinking that the space could > be > > an issue. > > I tried running other programs such as demo.py. > > > > After several such trials, now I am not able to see any messages on the > > command window because DOS window just disappears and I see a blue screen > > asking me to cntrl-alt-del or to reboot. > > > > I further debugged and saw that ' temp' data files e.g., in the demo.py > were > > being written to temp files. It is only when it comes to plotting that > the > > computer hangs. > > > > I then tried this: I changed the name of the Gnuplot (i.e., Gnuplot app > 4.4) > > directory to 'guplot' but without making changes to the PATH, and then I > ran > > the demo program - my thought was that it should not be able to find the > > Gnuplot application and would give me some error messages rather than > > computer hanging. > > > > But unfortunately, the computer still hangs for test.py. It runs all the > way > > till > > > > print '############### test Func ###################################' > > wait('Plot a gnuplot-generated function') > > > > and then goes bust. Although the command window diappears in a flash I > can > > make out the long comment line stated above. Again none of the command or > > plot windows pertaining to Gnuplot open up. The entire screen just blinks > > and then becomes dead. > > > > > > Another fact I would like to mention is that I tried all the above on Win > XP > > at my work, under similar file configuration and I get no issues at all. > > > > I guess this is how far I have been able to proceed. > > > > Any help would be appreciated despite that fact that I will be strongly > > discouraged from using WinME (I will eventually transition to Linux) but > it > > will take some time. I just feel that this is a solvable problem and may > not > > be a Win ME issue (hope!!). > > > > Rajan > > > > > > > > > > > ------------------------------------------------------------------------------ > > Download Intel® Parallel Studio Eval > > Try the new software tools for yourself. Speed compiling, find bugs > > proactively, and fine-tune applications for parallel performance. > > See why Intel Parallel Studio got high marks during beta. > > http://p.sf.net/sfu/intel-sw-dev > > _______________________________________________ > > Gnuplot-py-users mailing list > > Gnu...@li... > > https://lists.sourceforge.net/lists/listinfo/gnuplot-py-users > > > > > |
From: Benny M. <ben...@gm...> - 2010-03-12 09:27:45
|
Try giving direct commands with gnuplot in python shell, and see if gnuplot can open a window on your OS. So: $ python Python 2.6.4 (r264:75706, Dec 7 2009, 18:43:55) [GCC 4.4.1] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import Gnuplot >>> a = Gnuplot.Gnuplot() >>> a('plot sin(x)') >>> You should see a gnuplot window open up that shows sin(x). Also, check the bug tracker, https://sourceforge.net/tracker/?group_id=17434&atid=117434 , there are several patches posted there for windows. By lack of windows to test, and lack of other windows users to test it, I think those do not get added to the code. Benny 2010/3/10 Rajan Gurjar <rjn...@gm...>: > Hi, > I have gnuplot-py-1.8 (is residing in site-packages dir of Python) > Python 2.5 (residing in C) > Gnuplot v4.4 (residing in C:\Program Files and also a different named copy > in C:\). > > O.S: Win ME (I only hope this does not discourage you from reading further) > > I have been able to run python codes with numpy without much issue but never > tried plotting using Gnuplot. I would use Excel to plot the data files until > I decided Gnuplot was the way to go. > > The binary setup installation ran well for all. I think all the paths are > defined - because I am able to give a command "python" from any directory > and I get to the python shell immediately. > > Also typing "wgnuplot" or "pgnuplot" from any directory I am able to open > the Gnuplot terminal and plot functions such as sinx/x etc. > > However, when I go to Python25\Lib\site-packages\Gnuplot and run 'python > test.py' from command window or run test.py from IDLE, the computer > immediately crashes and I have to reboot. > > Earlier, I would get it to work till > > print ( > 'This program exercises many of the features of Gnuplot.py. The\n' > 'commands that are actually sent to gnuplot are printed for your\n' > 'enjoyment.' > ) > > wait('Popping up a blank gnuplot window on your screen.') > g = Gnuplot.Gnuplot(debug=1) > g.clear() > > # Make two temporary files: > if hasattr(tempfile, 'mkstemp'): > (fd, filename1,) = tempfile.mkstemp(text=1) > f = os.fdopen(fd, 'w') > (fd, filename2,) = tempfile.mkstemp(text=1) > else: > filename1 = tempfile.mktemp() > f = open(filename1, 'w') > filename2 = tempfile.mktemp() > try: > for x in numpy.arange(100.)/5. - 10.: > f.write('%s %s %s\n' % (x, math.cos(x), math.sin(x))) > f.close() > > print '############### test Func > ###################################' > wait('Plot a gnuplot-generated function') > > And then the screen would freeze and I had to reboot. > > However, I never get the plot window and the Gnuplot terminal to open up. > The reason I say the above commands worked is because I can see the printout > in my DOS command window. I can also see the tmp files in the TEMP > directory. > > > I tried playing around mainly changing the paths or changing the directory > of Gnuplot from Program Files to just C:\ - thinking that the space could be > an issue. > I tried running other programs such as demo.py. > > After several such trials, now I am not able to see any messages on the > command window because DOS window just disappears and I see a blue screen > asking me to cntrl-alt-del or to reboot. > > I further debugged and saw that ' temp' data files e.g., in the demo.py were > being written to temp files. It is only when it comes to plotting that the > computer hangs. > > I then tried this: I changed the name of the Gnuplot (i.e., Gnuplot app 4.4) > directory to 'guplot' but without making changes to the PATH, and then I ran > the demo program - my thought was that it should not be able to find the > Gnuplot application and would give me some error messages rather than > computer hanging. > > But unfortunately, the computer still hangs for test.py. It runs all the way > till > > print '############### test Func ###################################' > wait('Plot a gnuplot-generated function') > > and then goes bust. Although the command window diappears in a flash I can > make out the long comment line stated above. Again none of the command or > plot windows pertaining to Gnuplot open up. The entire screen just blinks > and then becomes dead. > > > Another fact I would like to mention is that I tried all the above on Win XP > at my work, under similar file configuration and I get no issues at all. > > I guess this is how far I have been able to proceed. > > Any help would be appreciated despite that fact that I will be strongly > discouraged from using WinME (I will eventually transition to Linux) but it > will take some time. I just feel that this is a solvable problem and may not > be a Win ME issue (hope!!). > > Rajan > > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gnuplot-py-users mailing list > Gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-py-users > > |
From: Rajan G. <rjn...@gm...> - 2010-03-10 16:53:05
|
Hi, I have gnuplot-py-1.8 (is residing in site-packages dir of Python) Python 2.5 (residing in C) Gnuplot v4.4 (residing in C:\Program Files and also a different named copy in C:\). O.S: Win ME (I only hope this does not discourage you from reading further) I have been able to run python codes with numpy without much issue but never tried plotting using Gnuplot. I would use Excel to plot the data files until I decided Gnuplot was the way to go. The binary setup installation ran well for all. I think all the paths are defined - because I am able to give a command "python" from any directory and I get to the python shell immediately. Also typing "wgnuplot" or "pgnuplot" from any directory I am able to open the Gnuplot terminal and plot functions such as sinx/x etc. However, when I go to Python25\Lib\site-packages\Gnuplot and run 'python test.py' from command window or run test.py from IDLE, the computer immediately crashes and I have to reboot. Earlier, I would get it to work till print ( 'This program exercises many of the features of Gnuplot.py. The\n' 'commands that are actually sent to gnuplot are printed for your\n' 'enjoyment.' ) wait('Popping up a blank gnuplot window on your screen.') g = Gnuplot.Gnuplot(debug=1) g.clear() # Make two temporary files: if hasattr(tempfile, 'mkstemp'): (fd, filename1,) = tempfile.mkstemp(text=1) f = os.fdopen(fd, 'w') (fd, filename2,) = tempfile.mkstemp(text=1) else: filename1 = tempfile.mktemp() f = open(filename1, 'w') filename2 = tempfile.mktemp() try: for x in numpy.arange(100.)/5. - 10.: f.write('%s %s %s\n' % (x, math.cos(x), math.sin(x))) f.close() print '############### test Func ###################################' wait('Plot a gnuplot-generated function') And then the screen would freeze and I had to reboot. However, I never get the plot window and the Gnuplot terminal to open up. The reason I say the above commands worked is because I can see the printout in my DOS command window. I can also see the tmp files in the TEMP directory. I tried playing around mainly changing the paths or changing the directory of Gnuplot from Program Files to just C:\ - thinking that the space could be an issue. I tried running other programs such as demo.py. After several such trials, now I am not able to see any messages on the command window because DOS window just disappears and I see a blue screen asking me to cntrl-alt-del or to reboot. I further debugged and saw that ' temp' data files e.g., in the demo.py were being written to temp files. It is only when it comes to plotting that the computer hangs. I then tried this: I changed the name of the Gnuplot (i.e., Gnuplot app 4.4) directory to 'guplot' but without making changes to the PATH, and then I ran the demo program - my thought was that it should not be able to find the Gnuplot application and would give me some error messages rather than computer hanging. But unfortunately, the computer still hangs for test.py. It runs all the way till print '############### test Func ###################################' wait('Plot a gnuplot-generated function') and then goes bust. Although the command window diappears in a flash I can make out the long comment line stated above. Again none of the command or plot windows pertaining to Gnuplot open up. The entire screen just blinks and then becomes dead. Another fact I would like to mention is that I tried all the above on Win XP at my work, under similar file configuration and I get no issues at all. I guess this is how far I have been able to proceed. Any help would be appreciated despite that fact that I will be strongly discouraged from using WinME (I will eventually transition to Linux) but it will take some time. I just feel that this is a solvable problem and may not be a Win ME issue (hope!!). Rajan |
From: Paweł S. <paw...@gm...> - 2010-03-03 18:55:31
|
In what path you have a Gnuplot installed. I have that error when in Gnuplot path i have a " " (space) in my example : "c:/Program Files/Gnuplot/bin/wgnuplot.exe". Then I copy Gnuplot dir to c:/ and change a path in gp_win32.py and that solve my problem. Pleas answer did this help you too ??? Paweł Siergiejuk 2010/3/3 alain dimier <ala...@gm...>: > Hi > > I try to run Gnuplot in Python under windows with IDLE or through a command > line. I'm running Python version. 2.6.4. > > > import Gnuplot, Gnuplot.funcutils > from numpy import * > g = Gnuplot.Gnuplot(debug=1) > gnuplot> set terminal windows > g.title('A simple example') > > > Traceback (most recent call last): > File "<pyshell#4>", line 1, in <module> > g.title('A simple example') > File "C:\Python26\lib\site-packages\Gnuplot\_Gnuplot.py", line 473, in > title > self.set_label('title', s, offset=offset, font=font) > File "C:\Python26\lib\site-packages\Gnuplot\_Gnuplot.py", line 410, in > set_label > self(string.join(cmd)) > File "C:\Python26\lib\site-packages\Gnuplot\_Gnuplot.py", line 210, in > __call__ > self.gnuplot(s) > File "C:\Python26\lib\site-packages\Gnuplot\gp_win32.py", line 130, in > __call__ > self.write(s + '\n') > IOError: [Errno 22] Invalid argument > > Can you give me some advice about the way to solve that problem? > Best Regards > > > -- > Alain Dimier > > (33) 4 26 64 86 91 > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gnuplot-py-users mailing list > Gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-py-users > > |
From: alain d. <ala...@gm...> - 2010-03-03 17:06:12
|
Hi I try to run Gnuplot in Python under windows with IDLE or through a command line. I'm running Python version. 2.6.4. import Gnuplot, Gnuplot.funcutils from numpy import * g = Gnuplot.Gnuplot(debug=1) gnuplot> set terminal windows g.title('A simple example') Traceback (most recent call last): File "<pyshell#4>", line 1, in <module> g.title('A simple example') File "C:\Python26\lib\site-packages\Gnuplot\_Gnuplot.py", line 473, in title self.set_label('title', s, offset=offset, font=font) File "C:\Python26\lib\site-packages\Gnuplot\_Gnuplot.py", line 410, in set_label self(string.join(cmd)) File "C:\Python26\lib\site-packages\Gnuplot\_Gnuplot.py", line 210, in __call__ self.gnuplot(s) File "C:\Python26\lib\site-packages\Gnuplot\gp_win32.py", line 130, in __call__ self.write(s + '\n') IOError: [Errno 22] Invalid argument Can you give me some advice about the way to solve that problem? Best Regards -- Alain Dimier (33) 4 26 64 86 91 |
From: <w.n...@o2...> - 2010-01-16 07:21:11
|
This works g('set terminal png notransparent medium size 800,600 crop x000000') g('set output "gp-test2.png"') g.plot(d) |
From: <w.n...@o2...> - 2010-01-12 16:20:09
|
How do I change the background color from white (default?) to black? I've tried many things including a .gnuplot file with no success. I have been unable to find an example. Thank you for your help. Bill Nayland |
From: Shibnath P. <shi...@gm...> - 2009-12-16 16:14:50
|
Hi, Thanks to all for reply. I solved that problem. Now I am facing one new problem. When I am using "set terminal postscript enhanced color " to save the graph in .ps for multi plotting (three curves in one page ) the curves are coming deferent color but the lines are not solid even I declared that g('set data style lines'). Thank you Shibnath On Wed, Dec 16, 2009 at 10:50 AM, Shibnath Pathak <shi...@gm...>wrote: > Hi, > > I am new to python and gunplot.py . But I am quite familiar with Gnuplot. > So in Gnuplot to plot a file I used " gnuplot> plot "filename" using 1:2 > with lines ". The file is in text form and the data are saving there in two > column 1st one is x axis and 2nd one is Y axis. > > In Gnuplot.py I try to plot same file like this " > > from numpy import * > import Gnuplot, Gnuplot.funcutils > g = Gnuplot.Gnuplot(debug=1) > g.title('A simple example') # (optional) > f = open('filename', 'r' ) > g.plot(f, using = (1,2), with_='lines') > raw_input('Please press return to continue...\n') > > > But I didn't get any plot. > So please help me. > > Thank you in advance. > > -- > Shibnath Pathak > > -- Shibnath Pathak |
From: Michael H. <mh...@al...> - 2009-12-16 15:30:35
|
Shibnath Pathak wrote: > I am new to python and gunplot.py. [...] I suggest you start by running the demo: python demo.py and looking at the heavily documented source code of demo.py to learn the basics. After that you can read the documentation strings in the other Gnuplot.py modules, especially _Gnuplot.py and PlotItems.py. Michael |
From: Andrzej N. <no...@gm...> - 2009-12-16 15:22:26
|
Hi, It looks like you are passing Python file handle to g.plot(). If you are trying to plot data in a file, I think it expects Gnuplot.File object. I don't know if it will handle a string of filename automatically, since a string could be an equation as well. Look at help(g.plot) and help(Gnuplot.File) for more information. Regards, Andrzej > From: Shibnath Pathak <shi...@gm...> > To: gnu...@li... > Subject: [Gnuplot-py-users] problem with calling a file. > Date: Wed, 16 Dec 2009 10:50:25 +0100 > > Hi, > > I am new to python and gunplot.py . But I am quite familiar with Gnuplot. So > in Gnuplot to plot a file I used " gnuplot> plot "filename" using 1:2 with > lines ". The file is in text form and the data are saving there in two > column 1st one is x axis and 2nd one is Y axis. > > In Gnuplot.py I try to plot same file like this " > > from numpy import * > import Gnuplot, Gnuplot.funcutils > g = Gnuplot.Gnuplot(debug=1) > g.title('A simple example') # (optional) > f = open('filename', 'r' ) > g.plot(f, using = (1,2), with_='lines') > raw_input('Please press return to continue...\n') > > > But I didn't get any plot. > So please help me. > > Thank you in advance. > > -- > Shibnath Pathak |
From: Shibnath P. <shi...@gm...> - 2009-12-16 09:50:33
|
Hi, I am new to python and gunplot.py . But I am quite familiar with Gnuplot. So in Gnuplot to plot a file I used " gnuplot> plot "filename" using 1:2 with lines ". The file is in text form and the data are saving there in two column 1st one is x axis and 2nd one is Y axis. In Gnuplot.py I try to plot same file like this " from numpy import * import Gnuplot, Gnuplot.funcutils g = Gnuplot.Gnuplot(debug=1) g.title('A simple example') # (optional) f = open('filename', 'r' ) g.plot(f, using = (1,2), with_='lines') raw_input('Please press return to continue...\n') But I didn't get any plot. So please help me. Thank you in advance. -- Shibnath Pathak |
From: zhangwei02 <zha...@ba...> - 2009-11-18 10:32:00
|
Hi I use gnuplot-py ,load a file to draw a graph: Code: import Gnuplot, Gnuplot.funcutils g = Gnuplot.Gnuplot(debug=1) g.title('a example') # (optional) g('set timefmt "%Y%m%d"') g('set xlabel "Date"') g('set format x "%Y%m%d"') #---------------- bug? g('set ylabel "JobNum"') g('set xtics rotate') g('set terminal png font "fonts/msyh.ttf" 12') # add ! g('set output \'graph_1.png\'') # add! filename='hadoop.data' thefile1 = Gnuplot.File(filename, using = (1,2), with_='lines') g.plot(thefile1) the data file's 1st column is date string. It execute as this: gnuplot> set terminal x11 gnuplot> set title "a example" gnuplot> set timefmt "%Y%m%d" gnuplot> set xlabel "Date" gnuplot> set format x "%Y%m%d" gnuplot> set ylabel "JobNum" gnuplot> set xtics rotate gnuplot> set terminal png font "fonts/msyh.ttf" 12 gnuplot> set output 'graph_1.png' gnuplot> plot "hadoop.data" using 1:2 with lines gnuplot: unable to open display '' gnuplot: X11 aborted. line 0: Bad format character the graph output is empty, but I execute it ok in gnuplot. And when I comment the line above, the picture output is ok,but the x items are not date string, so it must be something wrong on the line Is that a bug? Or how to set the output's format. Thanks! |
From: zhangwei02 <zha...@ba...> - 2009-11-18 10:28:44
|
Hi I use gnuplot-py ,load a file to draw a graph: Code: import Gnuplot, Gnuplot.funcutils g = Gnuplot.Gnuplot(debug=1) g.title('a example') # (optional) g('set timefmt "%Y%m%d"') g('set xlabel "Date"') g('set format x "%Y%m%d"') #---------------- bug? g('set ylabel "JobNum"') g('set xtics rotate') g('set terminal png font "fonts/msyh.ttf" 12') # add ! g('set output \'graph_1.png\'') # add! filename='hadoop.data' thefile1 = Gnuplot.File(filename, using = (1,2), with_='lines') g.plot(thefile1) the data file's 1st column is date string. It execute as this: gnuplot> set terminal x11 gnuplot> set title "a example" gnuplot> set timefmt "%Y%m%d" gnuplot> set xlabel "Date" gnuplot> set format x "%Y%m%d" gnuplot> set ylabel "JobNum" gnuplot> set xtics rotate gnuplot> set terminal png font "fonts/msyh.ttf" 12 gnuplot> set output 'graph_1.png' gnuplot> plot "hadoop.data" using 1:2 with lines gnuplot: unable to open display '' gnuplot: X11 aborted. line 0: Bad format character the graph output is empty, but I execute it ok in gnuplot. So is that a bug? Or how to set the output's format as date. Thanks! |
From: Philipp K. J. <ja...@ma...> - 2009-08-31 02:42:35
|
After what at times seemed like an interminable delay, the Gnuplot book is finally available in printed form! This means that anybody who pre-ordered the book should by now already have their copy or receive it within the next few days. I wanted to thank all of you who contributed questions and comments, or pointed out errors in the draft version of the manuscript. It really made a difference! More details are available on the publisher's site: www.manning.com/janert and the book is available from any bookseller, including Amazon: http://www.amazon.com/gp/product/1933988398 I wanted to thank everyone for their patience and also wanted to apologize again for the delay. I hope you will find that it was worth it. Best, Ph. |
From: Michael H. <mh...@al...> - 2009-08-10 08:25:43
|
Samuel H. Dupree, Jr. wrote: > I'm attempting to run Gnuplot in Python under IDLE. I'm running Python > version. 2.5 on a Power Mac G4 under Mac OS X, version 10.4.11. I've > installed Gnuplot-py version 1.8 and I have Gnuplot version 4.2. > > [...] > However, when I attempt to run this program under IDLE, I get no plot > whatsoever and IDLE produces the following report: > > Python 2.5 (r25:51918, Sep 19 2006, 08:49:13) > [GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin > Type "copyright", "credits" or "license()" for more information. > > **************************************************************** > Personal firewall software may warn about the connection IDLE > makes to its subprocess using this computer's internal loopback > interface. This connection is not visible on any external > interface and no data is sent to or received from the Internet. > **************************************************************** > > IDLE 1.2 >>>> ================================ RESTART > ================================ >>>> > gnuplot> set terminal aqua > > Traceback (most recent call last): > File "/Users/samueldupree/python programs/example_gnuplot.py", line > 16, in <module> > g.plot(t, y) > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Gnuplot/_Gnuplot.py", > line 285, in plot > self.refresh() > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Gnuplot/_Gnuplot.py", > line 226, in refresh > self(self.plotcmd + ' ' + string.join(plotcmds, ', ')) > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Gnuplot/_Gnuplot.py", > line 210, in __call__ > self.gnuplot(s) > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Gnuplot/gp_macosx.py", > line 144, in __call__ > self.flush() > IOError: [Errno 32] Broken pipe >>>> > > My questions for the list are: > > 1. What am I doing wrong? > 2. What path variables of parameters do I need to set? > 3. Why does my program work when running in a terminal window as > opposed to running under IDLE? It could be that your PATH is not set correctly when running under idle, and so Gnuplot.py cannot find the gnuplot executable. Michael |
From: Samuel H. D. Jr. <sd...@sp...> - 2009-08-10 04:38:03
|
Greetings, I'm attempting to run Gnuplot in Python under IDLE. I'm running Python version. 2.5 on a Power Mac G4 under Mac OS X, version 10.4.11. I've installed Gnuplot-py version 1.8 and I have Gnuplot version 4.2. I have Gnuplot defaulted to display plots using AquaTerm.app version 1.0.1. This has been working fine. When I run the following Python code in a terminal window #example_gnuplot.py from numpy import * import Gnuplot, Gnuplot.funcutils def f(t): return t**2*exp(-t**2) g = Gnuplot.Gnuplot(debug=1) t = linspace(0, 3, 51) # 51 points between 0 and 3 y = zeros(len(t)) # allocate y with float elements for i in xrange(len(t)): y[i] = f(t[i]) g.plot(t, y)* * produces the desired plot with the following listing: dsl092-239-159:~/python programs samueldupree$ python example_gnuplot.py gnuplot> set terminal aqua gnuplot> plot "/tmp/tmpytUeOa.gnuplot/fifo" notitle, "/tmp/tmp-7QSsP.gnuplot/fifo" notitle 2009-08-08 05:07:28.182 gnuplot[1510] libaquaterm::Warning: Logging at level 4 2009-08-08 05:07:28.184 gnuplot[1510] libaquaterm::Launching server... 2009-08-08 05:07:28.564 gnuplot[1510] libaquaterm::LSOpenCFURLRef = 0 2009-08-08 05:07:28.573 gnuplot[1510] libaquaterm::Waiting... 9 2009-08-08 05:07:29.585 gnuplot[1510] libaquaterm::Server version 1.0.1 2009-08-08 05:07:29.586 gnuplot[1510] libaquaterm::Connected! 2009-08-08 05:07:29.755 gnuplot[1510] libaquaterm::Active plot: 0 dsl092-239-159:~/python programs samueldupree$ However, when I attempt to run this program under IDLE, I get no plot whatsoever and IDLE produces the following report: Python 2.5 (r25:51918, Sep 19 2006, 08:49:13) [GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin Type "copyright", "credits" or "license()" for more information. **************************************************************** Personal firewall software may warn about the connection IDLE makes to its subprocess using this computer's internal loopback interface. This connection is not visible on any external interface and no data is sent to or received from the Internet. **************************************************************** IDLE 1.2 >>> ================================ RESTART ================================ >>> gnuplot> set terminal aqua Traceback (most recent call last): File "/Users/samueldupree/python programs/example_gnuplot.py", line 16, in <module> g.plot(t, y) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Gnuplot/_Gnuplot.py", line 285, in plot self.refresh() File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Gnuplot/_Gnuplot.py", line 226, in refresh self(self.plotcmd + ' ' + string.join(plotcmds, ', ')) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Gnuplot/_Gnuplot.py", line 210, in __call__ self.gnuplot(s) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Gnuplot/gp_macosx.py", line 144, in __call__ self.flush() IOError: [Errno 32] Broken pipe >>> My questions for the list are: 1. What am I doing wrong? 2. What path variables of parameters do I need to set? 3. Why does my program work when running in a terminal window as opposed to running under IDLE? Sam Dupree. |
From: Gregory P. <gp...@gm...> - 2009-07-27 03:05:43
|
I am trying to plot data with a date on the x-axis. I am using self.gnuplot = Gnuplot.Gnuplot(debug=1) self.gnuplot('set xdata time') self.gnuplot('set timefmt "%Y%m%d"') # format of the actual data self.gnuplot('set format x "%y-%m-%d"') # for the xtics self.gnuplot.plot(Gnuplot.Data(data,using='1:2'),Gnuplot.Func('%.2f' % average, title='Average = %.2f' % average)) where data is, for example, something like this: [[20090622, -113.91], [20090623, -110.59], [20090624, -124.11], [20090625, -161.97], [20090626, -156.63], [20090627, -181.51], [20090628, -211.62], [20090629, -211.62], [20090630, -215.41], [20090631, -164.89], [20090702, -121.84], [20090703, -122.18], [20090704, -108.14], [20090705, -97.77], [20090706, -120.37], [20090707, -110.40], [20090708, -147.95], [20090709, -138.48]] I'm passing the date as an integer in the format %Y%m%d since I wasn't able to convince Gnuplot to accept a string. My problem is that I get this error: /tmp/tmpU2rqK2.gnuplot/fifo:1: line 0: illegal day of month when the dates span two different months. In this case, it is the date 20090701 that causes the error. However, if I add 1 to all dates, this error is avoided, since that gets rid of July 1st. It doesn't seem to mind if there's a June 31st, or even a June 32nd if I add two. I wonder if the data is getting mangled somewhere between my plot command and what gnuplot tries to plot. I notice, for example, when plotting this data: [[20090720, -21.5], [20090721, -18.87], [20090722, -41.43], [20090723, 0.0], [20090724, -58.06], [20090725, 0.0], [20090726, -13.4]] what I get on screen is actually [[20090720,-18.87], [20090722,-41.43], [20090724, 0.0], [20090724,-58.06], [20090724,0.0], [20090726,-13.4]] Some y values are moved to the wrong day, some days are dropped completely, and others are repeated with different values. The order of the values, at least, is correct, although the first one was dropped. Any ideas what could be going on? I am using version 1.8 of Gnuplot.py and 2.6.2 of python. |
From: Alan G I. <ai...@am...> - 2009-07-17 14:52:19
|
Juana Arco wrote: > I'm trying to save a plot into a stream and call it from a webpage, I > cannot find a way to do it. This does not seem like a Gnuplot.py question. Try comp.lang.python (and take a look at http://www.daniweb.com/code/snippet337.html) Alan Isaac |
From: Juana A. <lua...@ho...> - 2009-07-17 14:11:59
|
Hi, I'm trying to save a plot into a stream and call it from a webpage, I cannot find a way to do it. Thanks, Lua Lauren found her dream laptop. Find the PC that’s right for you. _________________________________________________________________ Lauren found her dream laptop. Find the PC that’s right for you. http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290 |
From: William W. <Wil...@sa...> - 2009-07-16 16:03:15
|
Hi, How do I generate dual y-axis plot using gnuplot.py? I tried the ususal way g.plot(Gnuplot.data(list, axis='x1y2')) and it complains. Thanks, William Wu 408-801-2743 |
From: Jan B. <Jan...@ph...> - 2009-07-10 17:01:48
|
Instead of writing g('now =', now) you should pass a formatted string to gnuplot like g( ('now = %s' % str(now) ) ) Or simply avoid the comma, "+" is a better choice ;-) g( 'now =' + str(now) ) I am doing something quite similar with function_string = "A*exp(-B*x)" g( 'fit ' + function_string + ' \"filename\" u 1:2 via A,B' ) Jan Am Freitag, 10. Juli 2009 18:19 schrieb Olan Byrne: > Hello all, > > Just a quick question on something I seem to be stuck with. With gnuplot.py > I want to be able to subtract the current timestamp from column 1. The most > straight-forward way seems to be to set an interim value 'now' and then > pass this into the plot statement. However I cannot figure out how to get > the timestamp variable 'now' from python assigned in gnuplot. A segment of > what I'm trying to do is below: > > py: > from time import time > now = time() > print now > g('now =', now) ## problem line. g() can't take the extra now > input g.plot("'test.txt' using ($1-now):2") > > text.txt: > > 1247220778.304284 10 > 1247220778.406589 12 > 1247220778.509067 10 > 1247220778.713930 8 > 1247220778.816432 11 > 1247220778.918740 10 > 1247220779.021023 10 > > > Apologies if this is a simple question [which is seems like it is], but > after spending ages googling I still can't find the solution! Thanks for > any help.. > > Olan |
From: Olan B. <ol...@gm...> - 2009-07-10 16:19:07
|
Hello all, Just a quick question on something I seem to be stuck with. With gnuplot.py I want to be able to subtract the current timestamp from column 1. The most straight-forward way seems to be to set an interim value 'now' and then pass this into the plot statement. However I cannot figure out how to get the timestamp variable 'now' from python assigned in gnuplot. A segment of what I'm trying to do is below: py: from time import time now = time() print now g('now =', now) ## problem line. g() can't take the extra now input g.plot("'test.txt' using ($1-now):2") text.txt: 1247220778.304284 10 1247220778.406589 12 1247220778.509067 10 1247220778.713930 8 1247220778.816432 11 1247220778.918740 10 1247220779.021023 10 Apologies if this is a simple question [which is seems like it is], but after spending ages googling I still can't find the solution! Thanks for any help.. Olan |