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: Steven W. <wal...@pa...> - 2005-06-30 23:29:45
|
I have a pretty simple script working right now, and I'm still relatively new to python so if I'm going at this in a stupid way, please let me know. right now it has the following: a_mag = Gnuplot.Data(w, cols=(1,6), inline=1) a_mag.set_option(title='Amide Dipole') a_mag.set_option(with='lines') mags.append(a_mag) s_mag = Gnuplot.Data(w, cols=(1,10), inline=1) s_mag.set_option(title='Side Chain Dipole') s_mag.set_option(with='lines') mags.append(s_mag) when I use the command: g.plot(a_mag, s_mag) everything works fine. I would like however to add or remove certain plots from within the script, but alas the command: g.plot(mags) or g.plot(tuple(mags)) does not work. I get the following error messages: Traceback (most recent call last): File "./fasttest.py", line 215, in ? g.plot(mags) File "/usr/local/lib/python2.4/site-packages/Gnuplot/_Gnuplot.py", line 273, in plot self._add_to_queue(items) File "/usr/local/lib/python2.4/site-packages/Gnuplot/_Gnuplot.py", line 243, in _add_to_queue self.itemlist.append(PlotItems.Data(item)) File "/usr/local/lib/python2.4/site-packages/Gnuplot/ PlotItems.py", line 513, in Data set = utils.float_array(set[0]) File "/usr/local/lib/python2.4/site-packages/Gnuplot/utils.py", line 36, in float_array return Numeric.asarray(m, Numeric.Float32) File "/usr/local/lib/python2.4/site-packages/Numeric/Numeric.py", line 134, in asarray return multiarray.array(a, typecode, copy=0, savespace=savespace) AttributeError: _InlineFileItem instance has no attribute '__float__' Any suggestions? Thanks for any help, Steve |
From: Uwe S. <uwe...@gm...> - 2005-05-16 22:58:59
|
Hi folks, forgive me as I am new to gnuplot-py, but how can I pass dates as x data to= the=20 gnuplot.data function? When I try something like ["2004-10-05",10] the module barfs and tells me that a float value is required. Any help would be greatly appreciated!=20 cheers, uwe=20 From within python:=20 >>> data=3D[["2005-01-01", 20], ["2005-01-20", 19]] >>> d=3DGnuplot.Data(data, with=3D'linespoints', using=3D'1:2') Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/lib/python2.3/site-packages/Gnuplot/PlotItems.py", line 513, in Data set =3D utils.float_array(set[0]) File "/usr/lib/python2.3/site-packages/Gnuplot/utils.py", line 41, in float_array return Numeric.asarray(m, Numeric.Float) File "/usr/lib/python2.3/site-packages/Numeric/Numeric.py", line 134, in asarray return multiarray.array(a, typecode, copy=3D0, savespace=3Dsavespace) TypeError: a float is required |
From: Mark T. <m.t...@uc...> - 2005-05-09 20:52:17
|
Hi I have been trying to save plots generated using gnuplot-py to files that can be read by the python imaging library (PIL), such as png, pbm. Every time I try this I get the message: " png does not support continuous colors" I am using splot, pm3d, from within python on a mac OSX_10.3. I tried ' set palette maxcolors 100' but no luck. Any ideas Many thanks mark -- Dr Mark Thomas Department of Biology University College London Gower Street London WC1E 6BT Tel: (020) 7 679 2654 Fax: (020) 7 679 7096 Mobile: 07973 725955 Email: m.t...@uc... Web: www.ucl.ac.uk/tcga/ |
From: Michael H. <mh...@al...> - 2005-05-07 03:16:53
|
Hi, The problem is a little bit obscure. You are passing splot() a 2-D array, but it really wants a 3-D array (the third axis would accomodate multiple data at each (x,y) point. Probably this should be handled better, but a solution for you is to add a third axis explicitly: g.splot(a[..., N.NewAxis]) At least that works for me. Michael Mark Thomas wrote: > I have been producing 2d arrays in python containing z values that I would > like to plot then turn into animated gifs. Up until now I have been using > gist (pli) to plot them. However, gist is very limited in the output file > formats and I can't get any of the output file formats into for example > Python Imaging Library in order to make animated gifs. So I decided to try > drawing plots with Gnuplot in python. I have tried various examples that > work in gnuplot but not when I try to put them into python. > > An example is below (adapted from > http://gnuplot.sourceforge.net/demo/pm3d.html): > > > import Gnuplot > import numarray as N > g = Gnuplot.Gnuplot(debug=1) > # set terminal png transparent nocrop enhanced font arial 8 size 420,320 > # set output 'pm3d.9.png' > g('set border 4095 lt -1 lw 1.000') > g('set view map') > g('set samples 30, 30') > #g('set isosamples 30, 30') > g('unset surface') > g('set style data pm3d') > g('set style function pm3d') > g('set ticslevel 0') > g('set title "colour map, using default rgbformulae 7,5,15 ... traditional > pm3d (black-blue-red-yellow)" 0.000000,0.000000 font ""') > g('set xlabel "x" 0.000000,0.000000 font ""') > g('set xrange [0:30] ') > g('set ylabel "y" 0.000000,0.000000 font ""') > g('set yrange [ 0:30]') > g('set y2range [ * : * ] reverse nowriteback # (currently > [-10.0000:10.0000] )') > g('set zrange [ 0.0001 : 1.00000 ] noreverse nowriteback') > g('set pm3d at b') > > > a = N.zeros([30,30]) +.3 > a[5:10,1:22] = .9 > g.splot(a) > > Any thoughts would be greatly appreciated. |
From: Mark T. <m.t...@uc...> - 2005-05-06 15:45:46
|
I have been producing 2d arrays in python containing z values that I would like to plot then turn into animated gifs. Up until now I have been using gist (pli) to plot them. However, gist is very limited in the output file formats and I can't get any of the output file formats into for example Python Imaging Library in order to make animated gifs. So I decided to try drawing plots with Gnuplot in python. I have tried various examples that work in gnuplot but not when I try to put them into python. An example is below (adapted from http://gnuplot.sourceforge.net/demo/pm3d.html): import Gnuplot import numarray as N g = Gnuplot.Gnuplot(debug=1) # set terminal png transparent nocrop enhanced font arial 8 size 420,320 # set output 'pm3d.9.png' g('set border 4095 lt -1 lw 1.000') g('set view map') g('set samples 30, 30') #g('set isosamples 30, 30') g('unset surface') g('set style data pm3d') g('set style function pm3d') g('set ticslevel 0') g('set title "colour map, using default rgbformulae 7,5,15 ... traditional pm3d (black-blue-red-yellow)" 0.000000,0.000000 font ""') g('set xlabel "x" 0.000000,0.000000 font ""') g('set xrange [0:30] ') g('set ylabel "y" 0.000000,0.000000 font ""') g('set yrange [ 0:30]') g('set y2range [ * : * ] reverse nowriteback # (currently [-10.0000:10.0000] )') g('set zrange [ 0.0001 : 1.00000 ] noreverse nowriteback') g('set pm3d at b') a = N.zeros([30,30]) +.3 a[5:10,1:22] = .9 g.splot(a) Any thoughts would be greatly appreciated. -- Dr Mark Thomas Department of Biology University College London Gower Street London WC1E 6BT Tel: (020) 7 679 2654 Fax: (020) 7 679 7096 Mobile: 07973 725955 Email: m.t...@uc... Web: www.ucl.ac.uk/tcga/ |
From: <ed...@ke...> - 2005-05-06 10:52:05
|
Hi again, mailing list!! After solving some problems thank to the help of Michael, I succeed with my proyect, but there is still a little detail that I can't find out. And this is: how to make the dates appear successfully on the screen. I'll explain: My x axis must print dates, and as the gnuplot tutorial sais, I've done something like this: $fp = popen("gnuplot -","w"); fputs($fp,"set title \"".$ejey." de los telefonos:".$telefonos." desde: ".$limite_inferior." hasta: ".$limite_superior." \"\n"); fputs($fp,"set format y \"%.3f\"\n"); fputs($fp,"set xlabel \"Fecha\"\n"); fputs($fp,"set ylabel \"".$ejey."\"\n"); fputs($fp,"set yrange [:]\n"); fputs($fp,"set timefmt \"%Y-%m-%d %H:%M:%S\"\n"); fputs($fp,"set xdata time\n"); fputs($fp,"set format x \"%Y-%m-%d %H:%M\"\n"); fputs($fp,"set ytics 0.25\n"); // fputs($fp,"set xtics autofreq\n"); fputs($fp,"set nomx2tics\n"); fputs($fp,"set nomy2tics\n"); fputs($fp,"set grid\n"); fputs($fp,"set size 2\n"); fputs($fp,"set lmargin 7\n"); fputs($fp,"set rmargin 2\n"); fputs($fp,"set tmargin 3\n"); fputs($fp,"set bmargin 3\n"); fputs($fp,"set boxwidth 10\n"); fputs($fp,"set output \"/var/www/smtustat/salida_gnuplot.png\"\n"); fputs($fp,"set terminal png\n"); fputs($fp,$string_plot."\n"); And if the points that I'm sending to the program are from 2005-01-01 00:00:00 to 2005-05-01 23:59:59, ..... why the x axis is divided into parts from 2000-01-01 00:00 to 2000-01-01 00:08????? I've tried with everythin, tried to put xranges but it's useless, tried to change the order of the instructions but it's useless, and the really matter is that if dates don't appear correctly.... my proyect has no much sense. Thank you very much if you can help me!! |
From: <ed...@ke...> - 2005-05-06 10:45:06
|
Thank you all very much. I finally found that the problem was with "using" . This is the code with which my program works! $fp = popen("gnuplot -","w"); fputs($fp,"set title \"".$ejey." de los telefonos: ".$telefonos." desde: ".$limite_inferior." hasta: ".$limite_superior." \"\n"); fputs($fp,"set format y \"%.3f\"\n"); fputs($fp,"set xlabel \"Fecha\"\n"); fputs($fp,"set ylabel \"".$ejey."\"\n"); fputs($fp,"set yrange [:]\n"); fputs($fp,"set timefmt \"%Y-%m-%d %H:%M:%S\"\n"); fputs($fp,"set xdata time\n"); fputs($fp,"set format x \"%Y-%m-%d %H:%M\"\n"); fputs($fp,"set ytics 0.25\n"); fputs($fp,"set xtics autofreq\n"); //fputs($fp, "set xrange [\"".$limite_inferior."\" : \"".$limite_superior."\"\n"); fputs($fp,"set nomx2tics\n"); fputs($fp,"set nomy2tics\n"); fputs($fp,"set grid\n"); fputs($fp,"set size 2\n"); fputs($fp,"set lmargin 7\n"); fputs($fp,"set rmargin 2\n"); fputs($fp,"set tmargin 3\n"); fputs($fp,"set bmargin 3\n"); fputs($fp,"set boxwidth 10\n"); fputs($fp,"set output \"/var/www/smtustat/salida_gnuplot.png\"\n"); fputs($fp,"set terminal png\n"); fputs($fp,$string_plot."\n"); for($i=0; $i<$total; $i++) Do you know if there is any way to call from php to gnuplot, send all the points that I send... but not creating a file called "salida_gnuplot.png", but simply createn an image on the screen?? I am interested in this fact so that more than one user can have access to the file at the same time. Thank you very much again! and I hope this little and simple code can help somebody. See you!! |
From: <ed...@ke...> - 2005-05-05 09:59:28
|
Hello people, I'm working with a simple php program. I'm suppossed to send some variables to gnuplot and wait for it to plot what I want. The problem is that I must be doing it really bad, since no plot appears at all. I'll explain better: I'm using the "exec" instruction, but I don't know how to tell my program that gnuplot must open. I directly write: exec(""set title \"Evolucion de las SMTU en el tiempo\""); exec("set format y \"%.3f\""); exec("set xlabel \"Fecha\""); exec("set ylabel ".$ejey); exec("set yrange [:]"); exec("set xdata time"); exec("set ytics 0.25"); exec("set xtics"); exec("set nomx2tics"); exec("set nomy2tics"); exec("set grid"); exec("set size 2"); exec("set lmargin 7"); exec("set rmargin 2"); exec("set tmargin 3"); exec("set bmargin 3"); exec("set boxwidth 10"); exec("set output \"salida_gnuplot.png\""); exec("set terminal png"); exec("plot '-' with linespoints, '-' with linespoints, '-' with linespoints); (and here, I star a bucle to send all the values like this: 3 4 6 0 .... and so on) Another problem I have is that my xaxis is a date, and I don't understand very well how this structure of plot '-' works with dates. No error message appears on my screen, but neither the plot appears. thank you very much if you could help me!! |
From: Michael H. <mh...@al...> - 2005-05-04 06:00:12
|
BBands wrote: >I'd like to use the new xticlabels function. I have >tried this: > >pData = Gnuplot.Data(date, open, high, low, close, >using = '0:2:3:4:5:xticlabels(1)', with = >'financebars') > >but gnuplot.py wants date to be a float. > >Any thoughts? > > Gnuplot.py doesn't know how to output dates. And since it uses Numeric arrays to store data, it wouldn't be trivial to fix this for the general case. So you probably need to write your data to a temporary file yourself (using a date format that can be understood by gnuplot), then plot the data directly from the file. If you want to get fancier, then you can define a new PlotItem that knows how to output dates, then the whole Gnuplot.py infrastructure should simply work. There was just a discussion on this mailing list about plotting dates. See the archives. Michael |
From: Michael H. <mh...@al...> - 2005-05-04 05:55:22
|
This is the well-known problem that the temporary files can be deleted before gnuplot is done using them. Please see the first question of the FAQ. Michael Florian Lindner wrote: >Hello, >I've the python script: > >import Gnuplot > >g = Gnuplot.Gnuplot(debug=1) >g.title('A simple example') >g('set data style linespoints') >g.plot([[0,1.1], [1,5.8], [2,3.3], [3,4.2]] > >taken from demo.py. > >When I try to execute: > >florian@horus ~/python $ python plot.py >gnuplot> set title "A simple example" >gnuplot> set data style linespoints >gnuplot> plot '/tmp/tmpzCyAzN' notitle > >gnuplot> plot '/tmp/tmpzCyAzN' notitle > ^ > can't read data file "/tmp/tmpzCyAzN" > line 0: util.c: No such file or directory > > >What is wrong there? > > |
From: BBands <bb...@ya...> - 2005-05-03 23:03:24
|
Hello, I'd like to use the new xticlabels function. I have tried this: pData = Gnuplot.Data(date, open, high, low, close, using = '0:2:3:4:5:xticlabels(1)', with = 'financebars') but gnuplot.py wants date to be a float. Any thoughts? John John Bollinger, CFA, CMT www.BollingerBands.com If you advance far enough, you arrive at the beginning. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Florian L. <mai...@xg...> - 2005-05-03 15:58:19
|
Sent another time, because the other mail didn't got through to the list after more than 2 hours. Hello, I've the python script: import Gnuplot g = Gnuplot.Gnuplot(debug=1) g.title('A simple example') g('set data style linespoints') g.plot([[0,1.1], [1,5.8], [2,3.3], [3,4.2]] taken from demo.py. When I try to execute: florian@horus ~/python $ python plot.py gnuplot> set title "A simple example" gnuplot> set data style linespoints gnuplot> plot '/tmp/tmpzCyAzN' notitle gnuplot> plot '/tmp/tmpzCyAzN' notitle ^ can't read data file "/tmp/tmpzCyAzN" line 0: util.c: No such file or directory What is wrong there? Thx, Florian |
From: Florian L. <mai...@xg...> - 2005-05-03 14:33:05
|
Hello, I've the python script: import Gnuplot g = Gnuplot.Gnuplot(debug=1) g.title('A simple example') g('set data style linespoints') g.plot([[0,1.1], [1,5.8], [2,3.3], [3,4.2]] taken from demo.py. When I try to execute: florian@horus ~/python $ python plot.py gnuplot> set title "A simple example" gnuplot> set data style linespoints gnuplot> plot '/tmp/tmpzCyAzN' notitle gnuplot> plot '/tmp/tmpzCyAzN' notitle ^ can't read data file "/tmp/tmpzCyAzN" line 0: util.c: No such file or directory What is wrong there? Thx, Florian |
From: Thomas P. <tho...@lu...> - 2005-04-27 08:53:21
|
Michael Haggerty schrieb: > Thomas Pfaff wrote: > >>> Why are you so allergic to temporary files? In most cases they >>> won't be significantly slower, as the bulk of the time is for >>> Python to format the data as ASCII data, which has to be done >>> anyway. >>> >>> Write yourself a little helper function like utils.write_array() >>> but which is smart about date-formatted data. File PlotItems can >>> take arbitrary strings as their "using" argument. What else do you >>> need? >>> >>> >> >> Well, basically I didn't like the thought of "having to". In all cases >> regular PlotItems work fine, except for time-data where I would "have >> to" use File PlotItems just because only they would accept the using >> keyword, which seemed to me like some kind of a workaround. >> >> > > What's missing isn't the "using" functionality; it's the ability to > include date information in data to be sent to gnuplot, and the > ability to format the date information in a way that gnuplot can > read. Gnuplot.py uses Numeric arrays to hold the data to be plotted > (at least when using the Data PlotItem), and I don't know of a good > way to store date information within a Numeric array. Therefore the > input to Data would have to be in a different form to even get started > supporting dates. > >> Maybe if I understood the concept behind the interaction with gnuplot >> .... If you say that Python has to format the data as ASCII data >> anyway, is it maybe that Python just creates ASCII lines in gnuplot >> format from the data which are then fed to gnuplot via a pipe? >> > > That is correct, though depending on your settings the data might be > transferred inline via the gnuplot command-input pipe, via a named > pipe, or via a temporary file. > >> If I >> can know beforehand how the final line would look like (the data from >> the array marked as x-data would be the first in line, followed by the >> y-data and so on), wouldn't it suffice to have all PlotItems accept >> the 'using' keyword, and then I would just say "using 1:3" if my >> date-strings contained a space? >> >> > > I think the real problem is that dates cannot be expressed as > space-separated columns of numbers (or can they...?) Gnuplot.py > doesn't have a way to output arbitrary strings, at least not via the > Data PlotItem. > > Let us know what you work out, > Michael > Well a simple form would be to use numbers according to the %s format, which would be seconds since the UNIX-epoch (1970-01-01, 00:00 UTC). I would prefer Julian dates, as they cover a larger period of time (1 Jan 4716 B.C.E. to 31 Dec 5000000 AD), but one would have to ask the gnuplot-developers to offer that functionality, I suppose; that's nothing gnuplot.py can do. Another possibility, if you just need numbers separated by spaces, might be "2005 04 27 00 00 00" which would be "%y %m %d %H %M %S" for the time format string. Actually I just read in the gnuplot help, that the above format string would also recognize the "number" 20050427000000 as spaces in format strings stand for zero or more spaces. However it would need 64bit integers to represent such numbers. Yet still I suppose gnuplot will still try to read a string using some kind of strptime function? Cheers, Thomas -- _______________________________________________________ Dipl.-Ing Thomas Pfaff, M.Eng. Dr.-Ing. Karl Ludwig Beratender Ingenieur Wasserwirtschaft - Wasserbau Herrenstr. 14 76133 Karlsruhe Tel: 0721 / 91251-46 Fax: 0721 / 91251-19 tho...@lu... |
From: Lozza H. <loz...@ho...> - 2005-04-27 04:55:24
|
The exact error it is giving me is "Cannot find python" after the dependencies check. Like I said in my first email, I'm running Fedora Core 3. I've had no problems with any other modules just gnuplot. This is what happens when I run the "automakic" install, when I rpm it, the thing tells me that it cannot find blas or cblas, both of which are most definitely installed on my computer. Cheers, Lozza |
From: Michael H. <mh...@al...> - 2005-04-26 19:44:20
|
Thomas Pfaff wrote: >>Why are you so allergic to temporary files? In most cases they >>won't be significantly slower, as the bulk of the time is for >>Python to format the data as ASCII data, which has to be done >>anyway. >> >>Write yourself a little helper function like utils.write_array() >>but which is smart about date-formatted data. File PlotItems can >>take arbitrary strings as their "using" argument. What else do you >>need? >> >> >> >Well, basically I didn't like the thought of "having to". In all cases >regular PlotItems work fine, except for time-data where I would "have >to" use File PlotItems just because only they would accept the using >keyword, which seemed to me like some kind of a workaround. > > What's missing isn't the "using" functionality; it's the ability to include date information in data to be sent to gnuplot, and the ability to format the date information in a way that gnuplot can read. Gnuplot.py uses Numeric arrays to hold the data to be plotted (at least when using the Data PlotItem), and I don't know of a good way to store date information within a Numeric array. Therefore the input to Data would have to be in a different form to even get started supporting dates. >Maybe if I understood the concept behind the interaction with gnuplot >.... If you say that Python has to format the data as ASCII data >anyway, is it maybe that Python just creates ASCII lines in gnuplot >format from the data which are then fed to gnuplot via a pipe? > That is correct, though depending on your settings the data might be transferred inline via the gnuplot command-input pipe, via a named pipe, or via a temporary file. > If I >can know beforehand how the final line would look like (the data from >the array marked as x-data would be the first in line, followed by the >y-data and so on), wouldn't it suffice to have all PlotItems accept >the 'using' keyword, and then I would just say "using 1:3" if my >date-strings contained a space? > > I think the real problem is that dates cannot be expressed as space-separated columns of numbers (or can they...?) Gnuplot.py doesn't have a way to output arbitrary strings, at least not via the Data PlotItem. Let us know what you work out, Michael |
From: Michael H. <mh...@al...> - 2005-04-26 19:35:48
|
Lozza Hyde wrote: > I think I may have posted once before but I can't remember and I still > haven't sorted out my problems. > I've been trying to install gnuplot for py for nearly 6 months and > different install are giving me different problems. I'm running F3 > and the latest version of gnuplot tells me that it cannot find python... > If anyone else has had this problem could you please tell me how to > fix it??? It's a little hard to help without more information. What operating system? What exactly did you do and what error message did you get? Normally, you start python via some other mechanism then import Gnuplot via python's "import" command. So problems finding python usually have to be resolved before you can even start Gnuplot. Michael |
From: Lozza H. <loz...@ho...> - 2005-04-26 07:04:55
|
I think I may have posted once before but I can't remember and I still haven't sorted out my problems. I've been trying to install gnuplot for py for nearly 6 months and different install are giving me different problems. I'm running F3 and the latest version of gnuplot tells me that it cannot find python... If anyone else has had this problem could you please tell me how to fix it??? Cheers, Lozza |
From: Michael H. <mh...@al...> - 2005-04-21 22:35:39
|
Edurne Dehesa wrote: >is there any way to introduce a line with a concrete character while creating >a file, so that I can plot every piece of file between those characters as an >individual plot, once above the others?? I mean... I want to save in a file >several points, of several people. Then I want to compare all those people in >a graph, so I want to plot each person's respective points in a different >color and so on. >Thank you very much if you can help me. > > Is there a special reason that you want to write them to a single file before plotting them? Because it would be much easier to plot lots of little PlotItems: items = [] for person in person_list: items.append(Data(person.data, title=person.name)] # Plot all of the datasets at once: g.plot(*items) I hope this helps, Michael |
From: Michael H. <mh...@al...> - 2005-04-21 21:50:29
|
Thomas Pfaff wrote: >I'm not yet a subscriber to this list, so please send at least a CC of >your answers to me personally. > >I used gnuplot.py quite extensively a couple of years ago and I really >loved it, except for the problem that the gnuplot process needed the >'using' keyword when plotting time-series data. As the PlotItems of >that time didn't allow setting the using-keyword I was forced to work >with temporary files which takes away much of the speed and comfort of >having python controlling gnuplot. > >[...] > >So my question is, if there is any way to trick the gnuplot process >into using python-arrays that contain time-series information without >resorting to temporary files? I would be back to gnuplot and python in >no time :-) > > Why are you so allergic to temporary files? In most cases they won't be significantly slower, as the bulk of the time is for Python to format the data as ASCII data, which has to be done anyway. Write yourself a little helper function like utils.write_array() but which is smart about date-formatted data. File PlotItems can take arbitrary strings as their "using" argument. What else do you need? Cheers, Michael |
From: Michael H. <mh...@al...> - 2005-04-21 21:34:12
|
sven wrote: > i'm using gnuplot to plot waveforms and sonograms under windows. > as i'm having up to 10 plotwindows on the screen it would be nice > to have the possibility to set the positions and sizes of the windows > from py. is it possible and if so, how? If you can do it from the gnuplot program itself, then you can do it from Gnuplot.py. The best place to start would be to start up the command-line version of gnuplot then type "help term windows" and see if it offers any appropriate options. If so, you can set them manually. Michael |
From: Michael H. <mh...@al...> - 2005-04-21 21:29:44
|
Casper Sharma wrote: >This is a pretty simple question and I'd really >appreciate any help. I have a simple file of data >points that I am plotting using a python script piped >to gnuplot. Does anyone know how i can get gnuplot to >add the best fit line for these points. > > This was discussed a while ago on this mailing list. See http://sourceforge.net/mailarchive/forum.php?thread_id=2853843&forum_id=11272 http://sourceforge.net/mailarchive/forum.php?thread_id=2871643&forum_id=11272 Michael |
From: Casper S. <cha...@ya...> - 2005-04-21 17:48:51
|
Hi, This is a pretty simple question and I'd really appreciate any help. I have a simple file of data points that I am plotting using a python script piped to gnuplot. Does anyone know how i can get gnuplot to add the best fit line for these points. Thanks, Divye Sharma __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Simon C. <ss...@ma...> - 2005-04-18 10:58:28
|
On Mon, 2005-04-18 at 10:39 +0200, Edurne Dehesa wrote: > Gnuplot.plot 'fichero0' with linespoints, 'fichero1' with linespoints > ^ > SyntaxError: invalid syntax Have a look at the examples, the plot object is not just a prefix to the usual command line, but you can use it somewhat that way. For example pobj = Gnuplot.Gnuplot() pobj( 'plot "file" with points, "fileb" with lines' ) or, from one of my scripts pobj = Gnuplot.Gnuplot() pobj.xlabel( xlab ) pobj.ylabel( ylab ) pobj( 'set zlabel "' + zlab + '"' ) pobj( 'set view 70,340,1.10' ) pobj( 'set grid xtics ytics' ) pobj( 'set contour' ) pobj( 'set cntrparam levels 10' ) pobj( 'set terminal png small transparent' ) pobj( 'set output "' + fileName + '"' ) dobj1 = Gnuplot.GridData( d1, x, y, Gnuplot.PlotItems._unset, title=d1Title, with="lines" ), pobj.splot( dobj1 ) pobj.reset() > I would be also pleased if you could help me with another question: can I > change names to every point in the axis?? Maybe you could construct a list of the points then use the more complex form of "set xtics". See 'help set xtics' in Gnuplot. If your dates are in seconds, I'm not sure. See the help for xdata and timefmt, it should be possible. Good luck -- Simon -- Simon Clift ssclift at math dot uwaterloo dot ca Ph.D. Student, Computational Finance Scientific Computing Group, School of Computer Science University of Waterloo Waterloo, Ontario, Canada N2L 3G1 |
From: Edurne D. <ed...@ke...> - 2005-04-18 10:25:59
|
is there any way to introduce a line with a concrete character while creating a file, so that I can plot every piece of file between those characters as an individual plot, once above the others?? I mean... I want to save in a file several points, of several people. Then I want to compare all those people in a graph, so I want to plot each person's respective points in a different color and so on. Thank you very much if you can help me. |