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...> - 2013-12-09 07:47:18
|
On 12/08/2013 02:49 PM, Richard Langley wrote: > I have a file of x,y real data pairs with the values to 9 digits of > precision. When I use gnuplot to plot the data directly using, say: > plot 'HHAT3260.csv' using 2:1 > I get a detailed plot with the values at their original precision. > However, when I use gnuplot within Python (having read in the file to > float lists x and y) using: > g = Gnuplot.Gnuplot(debug=1) > d = Gnuplot.Data(x, y, with_='points') > g.plot(d) > I get a plot with plotted values rounded or truncated to 7 digits of > precision, it seems. Is there a way to preserve the precision of the > data when using py-gnuplot? Gnuplot.py's default is to treat data as 32-bit floating point numbers. But if you explicitly pass double-precision data to Gnuplot.Data(), then I think it will pass the data to gnuplot with the higher precision. I.e., do something like d = Gnuplot.Data( numpy.array(x, dtype=numpy.float64), numpy.array(y, dtype=numpy.float64), with_='points', ) Michael -- Michael Haggerty mh...@al... http://softwareswirl.blogspot.com/ |
From: Richard L. <la...@un...> - 2013-12-08 13:49:41
|
I have a file of x,y real data pairs with the values to 9 digits of precision. When I use gnuplot to plot the data directly using, say: plot 'HHAT3260.csv' using 2:1 I get a detailed plot with the values at their original precision. However, when I use gnuplot within Python (having read in the file to float lists x and y) using: g = Gnuplot.Gnuplot(debug=1) d = Gnuplot.Data(x, y, with_='points') g.plot(d) I get a plot with plotted values rounded or truncated to 7 digits of precision, it seems. Is there a way to preserve the precision of the data when using py-gnuplot? -- Richard Langley ----------------------------------------------------------------------------- | Richard B. Langley E-mail: la...@un... | | Geodetic Research Laboratory Web: http://gge.unb.ca | | Dept. of Geodesy and Geomatics Engineering Phone: +1 506 453-5142 | | University of New Brunswick Fax: +1 506 453-4943 | | Fredericton, N.B., Canada E3B 5A3 | | Fredericton? Where's that? See: http://www.fredericton.ca/ | ----------------------------------------------------------------------------- |
From: Michael H. <mh...@al...> - 2013-11-26 07:39:04
|
On 11/26/2013 04:30 AM, Matt Sundquist wrote: > We just launched the Plotly [...] Even if Plotly is open-source, your email is off-topic on the Gnuplot-py-users mailing list. If, as it appears from the website, Plotly is closed-source, then your email is spam and I ask you to stop posting to our mailing list. Michael -- Michael Haggerty mh...@al... http://softwareswirl.blogspot.com/ |
From: Matt S. <ma...@pl...> - 2013-11-26 04:00:09
|
Hey Gnuplot-Py friends, Happy Monday! We just launched the Plotly <https://plot.ly/> beta, a project for analyzing data and making and sharing beautiful graphs and analytics, and we wanted to let this group know. We have APIs in Python, MATLAB, R, Julia, Perl, Arduion, and REST for logging, streaming, and importing data to make your graphs. You can style your graphs with our GUI, analyze data with our Python Shell, and easily share and collaborate on your projects. Plotly also lets you make interactive graphs with IPython (see Notebook<http://nbviewer.ipython.org/7576511> ). You can access our APIs here: https://plot.ly/api/Python. The graphs in the gallery below are available on our site, along with the code to make these graphs. As we're quite new, your expert thoughts, feedback, and suggestions are much appreciated! Thanks so much, Matt [image: Inline image 1] |
From: Michael H. <mh...@al...> - 2013-10-24 07:57:27
|
[Please always CC your replies to the mailing list as well.] On 10/24/2013 09:35 AM, Tomáš Odstrčil wrote: > It is possible to do it in gnuplot, I'm using the following command (the > last line is important) > set xrange [1:5]; > set yrange [-2:2]; > set style line 1 lt 2 lc rgb 'white' lw 2; > set style line 2 lt 1 lc rgb 'gray' lw 1; > set title 'title'; > set xlabel 'xlabel > set ylabel 'ylabel' > unset key > set term png transparent size 600,600 crop; > set output 'filename.png'; > set view map; > set pm3d explicit; > splot 'data.txt' with image, 'line.txt' using 1:2:(0) ls 1 with lines Ahh, I see, you are doing a "2-d" line plot by doing a 3-d line plot whose z values are always zero. The same trick works in Gnuplot.py: import math, numpy import Gnuplot g = Gnuplot.Gnuplot() theta = numpy.arange(-math.pi, math.pi, 0.1) x = numpy.cos(theta) y = numpy.sin(theta) g.splot( Gnuplot.Func('x*x + y*y'), Gnuplot.Data(x,y, using='1:2:(0)', with_='line'), ) or you can pass the zero data to gnuplot explicitly using something like g.splot( Gnuplot.Func('x*x + y*y'), Gnuplot.Data(x,y,numpy.zeros(len(t)), with_='line'), ) Michael -- Michael Haggerty mh...@al... http://softwareswirl.blogspot.com/ |
From: Michael H. <mh...@al...> - 2013-10-24 04:43:07
|
On 10/23/2013 06:53 PM, Tomáš Odstrčil wrote: > gnuplot-py is a great program, however is it possible to show a 2d and > 3d plot in the same image? I would like to plot a pseudocolor graph by > splot method and with some lines by plot method but the plot method > always clear the image before plotting . That's more a question about gnuplot than about gnuplot.py. I don't think it was possible years ago when I last used gnuplot regularly, but it might have changed. Michael -- Michael Haggerty mh...@al... http://softwareswirl.blogspot.com/ |
From: Tomáš O. <tom...@gm...> - 2013-10-23 16:53:33
|
Hi everyone, gnuplot-py is a great program, however is it possible to show a 2d and 3d plot in the same image? I would like to plot a pseudocolor graph by splot method and with some lines by plot method but the plot method always clear the image before plotting . Best Regards, Tomas |
From: Benny M. <ben...@gm...> - 2013-07-04 07:18:19
|
2013/7/3 Michael Haggerty <mh...@al...> > On 07/03/2013 02:49 PM, priyanka chelladurai wrote: > > THis is priyanka from INDIA doing my masters. I am using the code > > Gnuplot.py downloaded from sourcefeg.net <http://sourcefeg.net> for my > > project but when i wanted to first a simple example. i am getting an > > error. i browsed the net and did some modification according to some > > comments i got from the blogs. but still am getting this issue. SO > > thought of clarifying with u . PFB the code aand the error which i am > > getting. Kindly help me in this regard > > My guess is that this is related to the fact that you are using Python > 2.7; maybe something related to Unicode. Gnuplot.py has hardly been > maintained in years (I don't use it anymore and nobody else has > volunteered) so I wouldn't be surprised at all if it doesn't work under > Python 2.7. > > If you can, try it with an older version of Python and/or read the > Python documentation about the difference between 2.6 and 2.7 to see if > you can figure out the difference. > > In the future, please use the mailing list to discuss Gnuplot.py because > there are some other people who still use it and might be able to help > you better than I can. I am CCing this email to the users list. > > python 2.7 works good here with gnuplot last I used it. Without an error message, difficult to help though. As many others, I'm mainly using matplotlib now though. Benny > Michael > > -- > Michael Haggerty > mh...@al... > http://softwareswirl.blogspot.com/ > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Gnuplot-py-users mailing list > Gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-py-users > |
From: Michael H. <mh...@al...> - 2013-07-03 13:55:06
|
On 07/03/2013 02:49 PM, priyanka chelladurai wrote: > THis is priyanka from INDIA doing my masters. I am using the code > Gnuplot.py downloaded from sourcefeg.net <http://sourcefeg.net> for my > project but when i wanted to first a simple example. i am getting an > error. i browsed the net and did some modification according to some > comments i got from the blogs. but still am getting this issue. SO > thought of clarifying with u . PFB the code aand the error which i am > getting. Kindly help me in this regard My guess is that this is related to the fact that you are using Python 2.7; maybe something related to Unicode. Gnuplot.py has hardly been maintained in years (I don't use it anymore and nobody else has volunteered) so I wouldn't be surprised at all if it doesn't work under Python 2.7. If you can, try it with an older version of Python and/or read the Python documentation about the difference between 2.6 and 2.7 to see if you can figure out the difference. In the future, please use the mailing list to discuss Gnuplot.py because there are some other people who still use it and might be able to help you better than I can. I am CCing this email to the users list. Michael -- Michael Haggerty mh...@al... http://softwareswirl.blogspot.com/ |
From: Forrest I. <for...@be...> - 2012-12-31 21:27:17
|
Thanks for the help, Michael. The problem is solved now. It turns out that just doing persist=0 does the job. Earlier, I said that persist=0 doesn't help, but now I tested it more carefully--I was wrong. (I had a bunch of old Gnuplot windows open, and I mistook those for new persistant windows being created.) On Sat, Dec 29, 2012 at 1:56 AM, Michael Haggerty <mh...@al...>wrote: > On 12/29/2012 05:58 AM, Forrest Iandola wrote: > > I'm trying to do the opposite -- I'm using hardcopy() to write the plots > > to file, so /I'd like to have the gnuplot window close after Python > > finishes executing/. > > > > I'm using the X11 terminal (I'm working on a Mac, and aquaterm isn't > > cooperating). > > Regardless of whether I do gp = Gnuplot.Gnuplot(*persist = 1*) or > > *persist = 0*, the old Gnuplot windows stay open, and I often end up > > with tons of open windows. > > > > I'd be /satisfied/ if we could just have the Gnuplot windows close after > > Python finishes executing. > > It'd be /even better/ if I could have Python close all figures from > > previous runs, but keep the figure open from the most recent Python > > execution. In other words, I'm looking for the Matlab `close all hidden` > > command. > > A good first step might be for you to figure out how to get the gnuplot > program itself (i.e., independent of Gnuplot.py) to do what you want. > Maybe you have to start it with different command-line options? Maybe > you have to use a different terminal setting ("gnuplot> set term > XXXXXX")? Maybe you need to set extra options when setting the terminal > ("gnuplot> set term XXXXXX FOO BAR")? > > If it's possible to get gnuplot to behave the way you want, then it is > probably possible to get Gnuplot.py to do so. Conversely, if gnuplot is > not capable of doing what you want, Gnuplot.py has no chance. > > It *could be* that the way that Gnuplot.py does hardcopies is confusing > gnuplot. (It changes the terminal selection to one of the hardcopy > terminals, re-plots the data, then reselects the standard terminal.) > Perhaps the closing then re-opening of the standard terminal is breaking > gnuplot's connection to the old terminal window. Do the old terminals > stay around even if you don't make any hardcopies? > > Michael > > -- > Michael Haggerty > mh...@al... > http://softwareswirl.blogspot.com/ > -- Forrest Iandola http://www.forrestiandola.com |
From: Michael H. <mh...@al...> - 2012-12-29 07:56:21
|
On 12/29/2012 05:58 AM, Forrest Iandola wrote: > I'm trying to do the opposite -- I'm using hardcopy() to write the plots > to file, so /I'd like to have the gnuplot window close after Python > finishes executing/. > > I'm using the X11 terminal (I'm working on a Mac, and aquaterm isn't > cooperating). > Regardless of whether I do gp = Gnuplot.Gnuplot(*persist = 1*) or > *persist = 0*, the old Gnuplot windows stay open, and I often end up > with tons of open windows. > > I'd be /satisfied/ if we could just have the Gnuplot windows close after > Python finishes executing. > It'd be /even better/ if I could have Python close all figures from > previous runs, but keep the figure open from the most recent Python > execution. In other words, I'm looking for the Matlab `close all hidden` > command. A good first step might be for you to figure out how to get the gnuplot program itself (i.e., independent of Gnuplot.py) to do what you want. Maybe you have to start it with different command-line options? Maybe you have to use a different terminal setting ("gnuplot> set term XXXXXX")? Maybe you need to set extra options when setting the terminal ("gnuplot> set term XXXXXX FOO BAR")? If it's possible to get gnuplot to behave the way you want, then it is probably possible to get Gnuplot.py to do so. Conversely, if gnuplot is not capable of doing what you want, Gnuplot.py has no chance. It *could be* that the way that Gnuplot.py does hardcopies is confusing gnuplot. (It changes the terminal selection to one of the hardcopy terminals, re-plots the data, then reselects the standard terminal.) Perhaps the closing then re-opening of the standard terminal is breaking gnuplot's connection to the old terminal window. Do the old terminals stay around even if you don't make any hardcopies? Michael -- Michael Haggerty mh...@al... http://softwareswirl.blogspot.com/ |
From: Forrest I. <for...@be...> - 2012-12-29 04:59:24
|
I'm trying to do the opposite -- I'm using hardcopy() to write the plots to file, so *I'd like to have the gnuplot window close after Python finishes executing*. I'm using the X11 terminal (I'm working on a Mac, and aquaterm isn't cooperating). Regardless of whether I do gp = Gnuplot.Gnuplot(*persist = 1*) or *persist = 0*, the old Gnuplot windows stay open, and I often end up with tons of open windows. I'd be *satisfied* if we could just have the Gnuplot windows close after Python finishes executing. It'd be *even better* if I could have Python close all figures from previous runs, but keep the figure open from the most recent Python execution. In other words, I'm looking for the Matlab `close all hidden`command. Thanks, Forrest >On 07/17/2011 05:03 AM, tony wrote: >> I'm using gnuplot-py to monitor data from a serial port, and it works >> fine while the main python program is running. But I would like to keep >> the plot open after python closes - is that possible? I can obviously >> reopen the data file and reconstruct the plot, but it would be useful to >> keep the original plot window open. >g = Gnuplot.Gnuplot(persist=True) , if your platform supports it. >Michael -- Forrest Iandola http://www.forrestiandola.com |
From: Michael H. <mh...@al...> - 2012-07-30 09:44:26
|
On 07/25/2012 01:06 PM, Vic Watson wrote: > Apologies for my neophyte question, but I’m a bit new to gnuplot, and I > need to get this going this week… > > I have a data set of test results. The format is very simple: > > Attempted,5 > Passed,4 > Failed,1 > Skipped,0 > > I’m trying to put this through gnuplot to get a graph of the results – > specifically, I’m trying to return the image from a mod_python module > running in Apache. > > I’ve got a script that does what I want it to do on the gnuplot command > line :- > > set datafile separator "," > set yrange [0:] > set style fill solid > set terminal gif > set xrange [-.5:3.5] > attempted_row(x,y)=(x eq "Attempted") ? y:1/0 > skipped_row(x,y)=(x eq "Skipped") ? y:1/0 > passed_row(x,y)=(x eq "Passed") ? y:1/0 > failed_row(x,y)=(x eq "Failed") ? y:1/0 > > plot results.txt u ($0):(attempted_row(stringcolumn(1),$2)):xtic(1) w > boxes lc rgb "blue" ti "Attempted", "" u > ($0):(skipped_row(stringcolumn(1),$2)):xtic(1) w boxes lc rgb "yellow" > ti "Skipped", "" u ($0):(passed_row(stringcolumn(1),$2)):xtic(1) w boxes > lc rgb "green" ti "Passed", "" u > ($0):(failed_row(stringcolumn(1),$2)):xtic(1) w boxes lc rgb "red" ti > "Failed > > Now I’m not completely sure how this script works – I cribbed it from a > web page and adjusted it to meet my needs. > > I’m trying to get this running from Gnuplot.py – and it doesn’t. I can > “g.plot(‘results.txt’)”, and I seem to get no response. If I try to put > the data directly into g.plot, I get “ValueError: setting an array > element with a sequence”. The pedestrian way to do this is g = Gnuplot.Gnuplot() g.set(xrange=(-0.5,3.5), yrange=(0,None)) g('set datafile separator ","') g('set style fill solid') ... g.plot( File( 'results.txt', using='($0):(attempted_row(stringcolumn(1),$2)):xtic(1)', with='boxes lc rgb "blue"', title='Attempted', ), File( 'results.txt', using='...', ..., ), ... ) The maintainable way would be to read the datafile and pick it apart into separate lines using Python, then pass each line as a separate Data() object to g.plot(). Michael -- Michael Haggerty mh...@al... http://softwareswirl.blogspot.com/ |
From: Michael H. <mh...@al...> - 2012-07-30 09:41:10
|
On 07/26/2012 10:12 AM, Nav wrote: > I want to add a label to the plot with one of the variable coming from > python computation. For example I want the label to be: > > "/Average Number = 44.56/", where 44.56 comes from a computation in the > python code. > > I am trying the following: > > plot.set_label('label sprintf("Average = %f", average) at 1,0.15') > > But I get a message saying "undefined variable average". > > How do I pass a python variable to Gnuplot? > > I would appreciate any help in this regard. Well, this *should* work but it doesn't: plot.set_label('label', 'Average = %f' % average, offset=(1,0.15)) It looks like gnuplot requires "at 1,0.15" for the position rather than "1,0.15" which Gnuplot.py is trying to send. (Maybe this was always broken or maybe gnuplot has changed its syntax in the last 12 years.) So instead, you can use: plot('set label "Average = %f" at 1,0.15' % average) Michael -- Michael Haggerty mh...@al... http://softwareswirl.blogspot.com/ |
From: Nav <nj...@gm...> - 2012-07-26 08:13:07
|
Hi Everyone, I want to add a label to the plot with one of the variable coming from python computation. For example I want the label to be: "Average Number = 44.56", where 44.56 comes from a computation in the python code. I am trying the following: plot.set_label('label sprintf("Average = %f", average) at 1,0.15') But I get a message saying "undefined variable average". How do I pass a python variable to Gnuplot? I would appreciate any help in this regard. Thanks, -Nav |
From: Vic W. <vic...@er...> - 2012-07-25 11:06:31
|
Hi All. Apologies for my neophyte question, but I'm a bit new to gnuplot, and I need to get this going this week... I have a data set of test results. The format is very simple: Attempted,5 Passed,4 Failed,1 Skipped,0 I'm trying to put this through gnuplot to get a graph of the results - specifically, I'm trying to return the image from a mod_python module running in Apache. I've got a script that does what I want it to do on the gnuplot command line :- set datafile separator "," set yrange [0:] set style fill solid set terminal gif set xrange [-.5:3.5] attempted_row(x,y)=(x eq "Attempted") ? y:1/0 skipped_row(x,y)=(x eq "Skipped") ? y:1/0 passed_row(x,y)=(x eq "Passed") ? y:1/0 failed_row(x,y)=(x eq "Failed") ? y:1/0 plot results.txt u ($0):(attempted_row(stringcolumn(1),$2)):xtic(1) w boxes lc rgb "blue" ti "Attempted", "" u ($0):(skipped_row(stringcolumn(1),$2)):xtic(1) w boxes lc rgb "yellow" ti "Skipped", "" u ($0):(passed_row(stringcolumn(1),$2)):xtic(1) w boxes lc rgb "green" ti "Passed", "" u ($0):(failed_row(stringcolumn(1),$2)):xtic(1) w boxes lc rgb "red" ti "Failed Now I'm not completely sure how this script works - I cribbed it from a web page and adjusted it to meet my needs. I'm trying to get this running from Gnuplot.py - and it doesn't. I can "g.plot('results.txt')", and I seem to get no response. If I try to put the data directly into g.plot, I get "ValueError: setting an array element with a sequence". I've no idea how to progress - can anyone point me in the right direction, please? Thanks! Vic. |
From: lee P. <ho...@gm...> - 2012-07-11 18:23:43
|
Deadline extended to this Friday the Thirteenth. All you need to do to enter is leave a comment: http://lee-phillips.org/gnuplotcontest/ |
From: <e....@nk...> - 2012-06-01 09:42:39
|
Maybe your gp_unix.py doesn't point to the right gnuplot executable location? gnuplot_command = '/usr/bin/gnuplot' should point to a location where gnuplot can be found (so a directory within the $PATH should do, or the full path). Check that. Edo ________________________________________ From: Pete O'Connell [ped...@gm...] Sent: Wednesday, May 30, 2012 9:15 AM To: gnu...@li... Subject: [Gnuplot-py-users] Gnuplot.data "with" workaround Hi Sarat. Thanks. That doesn't error anymore. I am just getting started with this and I found this code on the web which I am trying to run: from numpy import * import Gnuplot x = linspace(0,10,31) y = x**2 y2 = 10*sin(pi*x) g = Gnuplot.Gnuplot() #!! Won't be able to use 'with' in python 2.6? d = Gnuplot.Data(x,y,title='squared', with_='lp lt 1 pt 6') d2=Gnuplot.Data(x,y2,title='sine',with_='p pt 7 ps 4') g('set grid') When I test the line: g('set grid') I get the following error File "<string>", line 1, in <module> File "/vol/here/linux64/lib/python2.6/site-packages/Gnuplot/_Gnuplot.py", line 210, in __call__ self.gnuplot(s) File "/vol/here/linux64/lib/python2.6/site-packages/Gnuplot/gp_unix.py", line 210, in __call__ self.flush() IOError: [Errno 32] Broken pipe Anyone know what that means? Thanks for your help Pete On Wed, May 30, 2012 at 5:49 PM, Sarat Sreepathi <sa...@tr...<mailto:sa...@tr...>> wrote: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Pete, I had the same problem. Use 'with_' instead of 'with' (h/t Edo). - -Sarat. On 05/30/2012 12:59 AM, Pete O'Connell wrote: > Hi I am using python 2.6 and would like to use the gnuplot.py > package. I can't get my code to run because it says that the with > statement in Gnuplot.data won't run in Python 2.6 > > Is there a workaround for this? I tried importing the with > statement from the future but no dice. Also, I can only use python > 2.6 in this case. > > Any help would be greatly appreciated. > > Pete > > -- - > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. > Discussions will include endpoint security, mobile security and the > latest in malware threats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > _______________________________________________ Gnuplot-py-users > mailing list Gnu...@li...<mailto:Gnu...@li...> > https://lists.sourceforge.net/lists/listinfo/gnuplot-py-users -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBAgAGBQJPxbUEAAoJEGRt4wHV94AVWAAP/3lZoN9Fjqjtro4DxUEIHrkG XrwGhwuBPthhxv0eouNthMrLVw02aD6/sQ1kdWWMrdLR2xTFPxkk0un+P9a2JKpT tdQLi7vvo/1OBv/UckMcD9Vr28euglRl1oyTragSTsDO3urB2/4LlFfkRi9icn3k L88zJJFxEVUlLh2i73XLBGdWdtSo5qoo+7K2Zg8dgOyCkdIcG41qYdGynUz8CGQP FT3zIOOjdq8kPL88i5Wv71PpNNCg2jF26bIMkfzLfrEX4CS5hAdQyeIksptUgpK/ 6gSUpzNHDljh3+kXMsMNKx6pnHhb1OTf0TvoQ276eyCDB0XxE4Sveh7VcpKYL0sN Yul4DzKRtZJHgOYh/GHkW8SZ9hUOKPNjK+/dOzNMA27tw/o0CKLCrIqi8AG9ki8C 3nTuGGRo1DNypw0aemu6sF9lBHFVLga7NZb942jy2FJkDOXiu4St6upZHvoY82cg QhN/jLbumpoUlYyGTGiSscsE/FSUzAswIU/YYanqJ0/qvCX7IHIVjbK3QeL93unW 8cqZpSX6BWnLSJEl6mX7/cbRTnSKGqO5GFKFtS321ZnIpaSnAkdaU3xCbDnlyLr8 OFwqNhMIWQ8YkVMLAqFedSC6fEjTtHqWEDx7B4R/B/hX4bTRCGcNcUQ1w+zyWqrE CjxweXZpliLM4GzTr/7k =xMwP -----END PGP SIGNATURE----- -- - -- - |
From: Pete O'C. <ped...@gm...> - 2012-05-30 07:16:19
|
Hi Sarat. Thanks. That doesn't error anymore. I am just getting started with this and I found this code on the web which I am trying to run: from numpy import * import Gnuplot x = linspace(0,10,31) y = x**2 y2 = 10*sin(pi*x) g = Gnuplot.Gnuplot() #!! Won't be able to use 'with' in python 2.6? d = Gnuplot.Data(x,y,title='squared', with_='lp lt 1 pt 6') d2=Gnuplot.Data(x,y2,title='sine',with_='p pt 7 ps 4') g('set grid') When I test the line: g('set grid') I get the following error File "<string>", line 1, in <module> File "/vol/here/linux64/lib/python2.6/site-packages/Gnuplot/_Gnuplot.py", line 210, in __call__ self.gnuplot(s) File "/vol/here/linux64/lib/python2.6/site-packages/Gnuplot/gp_unix.py", line 210, in __call__ self.flush() IOError: [Errno 32] Broken pipe Anyone know what that means? Thanks for your help Pete On Wed, May 30, 2012 at 5:49 PM, Sarat Sreepathi <sa...@tr...> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Pete, > > I had the same problem. Use 'with_' instead of 'with' (h/t Edo). > > - -Sarat. > > On 05/30/2012 12:59 AM, Pete O'Connell wrote: > > Hi I am using python 2.6 and would like to use the gnuplot.py > > package. I can't get my code to run because it says that the with > > statement in Gnuplot.data won't run in Python 2.6 > > > > Is there a workaround for this? I tried importing the with > > statement from the future but no dice. Also, I can only use python > > 2.6 in this case. > > > > Any help would be greatly appreciated. > > > > Pete > > > > -- - > > > > > > > ------------------------------------------------------------------------------ > > > > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. > > Discussions will include endpoint security, mobile security and the > > latest in malware threats. > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > > _______________________________________________ Gnuplot-py-users > > mailing list Gnu...@li... > > https://lists.sourceforge.net/lists/listinfo/gnuplot-py-users > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.11 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iQIcBAEBAgAGBQJPxbUEAAoJEGRt4wHV94AVWAAP/3lZoN9Fjqjtro4DxUEIHrkG > XrwGhwuBPthhxv0eouNthMrLVw02aD6/sQ1kdWWMrdLR2xTFPxkk0un+P9a2JKpT > tdQLi7vvo/1OBv/UckMcD9Vr28euglRl1oyTragSTsDO3urB2/4LlFfkRi9icn3k > L88zJJFxEVUlLh2i73XLBGdWdtSo5qoo+7K2Zg8dgOyCkdIcG41qYdGynUz8CGQP > FT3zIOOjdq8kPL88i5Wv71PpNNCg2jF26bIMkfzLfrEX4CS5hAdQyeIksptUgpK/ > 6gSUpzNHDljh3+kXMsMNKx6pnHhb1OTf0TvoQ276eyCDB0XxE4Sveh7VcpKYL0sN > Yul4DzKRtZJHgOYh/GHkW8SZ9hUOKPNjK+/dOzNMA27tw/o0CKLCrIqi8AG9ki8C > 3nTuGGRo1DNypw0aemu6sF9lBHFVLga7NZb942jy2FJkDOXiu4St6upZHvoY82cg > QhN/jLbumpoUlYyGTGiSscsE/FSUzAswIU/YYanqJ0/qvCX7IHIVjbK3QeL93unW > 8cqZpSX6BWnLSJEl6mX7/cbRTnSKGqO5GFKFtS321ZnIpaSnAkdaU3xCbDnlyLr8 > OFwqNhMIWQ8YkVMLAqFedSC6fEjTtHqWEDx7B4R/B/hX4bTRCGcNcUQ1w+zyWqrE > CjxweXZpliLM4GzTr/7k > =xMwP > -----END PGP SIGNATURE----- > -- - -- - |
From: Pete O'C. <ped...@gm...> - 2012-05-30 05:00:09
|
Hi I am using python 2.6 and would like to use the gnuplot.py package. I can't get my code to run because it says that the with statement in Gnuplot.data won't run in Python 2.6 Is there a workaround for this? I tried importing the with statement from the future but no dice. Also, I can only use python 2.6 in this case. Any help would be greatly appreciated. Pete -- - |
From: <e....@nk...> - 2012-03-24 07:22:06
|
use with_ instead of with d1 = Gnuplot.Data(y1,title='True Source',with_='lines lw 5') Edo ________________________________________ From: Sarat Sreepathi [sa...@tr...] Sent: Saturday, March 24, 2012 1:43 AM To: gnu...@li... Subject: [Gnuplot-py-users] Porting Gnuplot legacy: 'with' keyword Hello: I wrote a visualization module using Gnuplot during 2007-08. I have returned to it after a long hiatus to revamp and add some features. As 'with' became a Python keyword, the following line doesn't work anymore. I tried searching for a workaround in the list archives without much success. d1 = Gnuplot.Data(y1,title='True Source',with='lines lw 5') ^ SyntaxError: invalid syntax Any pointers would be greatly appreciated. -Sarat. ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Gnuplot-py-users mailing list Gnu...@li... https://lists.sourceforge.net/lists/listinfo/gnuplot-py-users |
From: Sarat S. <sa...@tr...> - 2012-03-24 01:02:27
|
Hello: I wrote a visualization module using Gnuplot during 2007-08. I have returned to it after a long hiatus to revamp and add some features. As 'with' became a Python keyword, the following line doesn't work anymore. I tried searching for a workaround in the list archives without much success. d1 = Gnuplot.Data(y1,title='True Source',with='lines lw 5') ^ SyntaxError: invalid syntax Any pointers would be greatly appreciated. -Sarat. |
From: Roberto Rodríguez-R. <ro...@gm...> - 2012-02-20 23:53:17
|
Thank you for your answer, but I got an error I did it: x1=[1,2,3,4] y1=[5,6,7,8] data = [ Gnuplot.Data(x0 , y0 , title="Nov-09") , Gnuplot.Data(x1 , y1 , title="Dec-09") ] g.plot(*data) and I got the following error: gnuplot> plot "/tmp/tmp8RzST6.gnuplot/fifo" title "Nov-09", "/tmp/tmpLro45i.gnuplot/fifo" title "Dec-09" ^ line 0: Too many columns in using specification What I need to do is a graphic like this http://www.ibm.com/developerworks/aix/library/au-gnuplot/diskimage.gif in these graphic I have the same x for several y. Best Regards Roberto On Mon, Feb 20, 2012 at 5:26 PM, <e....@nk...> wrote: > As far as I can tell, this line is wrong > > g.plot(data using 2:xtic(1) title "Oct-09 data growth(gb)", '' > using 3 title "Nov-09 data growth(gb)", '' using 4 title "Dec-09 data > growth(gb)") > > you must create the data like this > > data = [ Gnuplot.Data(x0 , y0 , title="Nov-09 etc") , > Gnuplot.Data(x1 , y1 , title="Dec-09 etc") , > ] > > where x0,y0 (etc) are the data arrays, then plot it with > > g.plot(*data) > > > Edo > > > > -----Original Message----- > > From: Roberto Rodríguez-Rodríguez [mailto:ro...@gm...] > > Sent: Monday, February 20, 2012 5:20 PM > > To: gnu...@li... > > Subject: [Gnuplot-py-users] Problem working with xtics > > > > Hi, I need to do a bar graph with categories, I found these example > > > > http://www.ibm.com/developerworks/aix/library/au-gnuplot/index.html > > > > I need to do something similar, for many data. I tried to > > replicate the example on python. I wrote the respective code > > I append it at the end of the message. > > > > but I got these error: > > File "./graph.py", line 119 > > g.plot(data using 2:xtic(1) title "Oct-09 data growth(gb)", '' > > using 3 title "Nov-09 data growth(gb)", '' using 4 title "Dec-09 data > > growth(gb)") > > ^ > > SyntaxError: invalid syntax > > > > The function fileopen2 is just for parsing the file with the > > data, I got a matrix wich I tried to graph. The problem is > > with the plot command, I don't know how to manage categories > > with gnuplot.py, I have looking in the web in several places > > but all the examples don't touch these part. > > > > these is my code > > > > #! /usr/bin/env python > > > > import Gnuplot, Gnuplot.funcutils, sys > > import sys > > import re > > import math > > > > #************************************************************* > > ****************** > > def plot2D(data): > > print sys.maxint > > g = Gnuplot.Gnuplot() #persist=1) > > g.title('Memory writes') > > g('set terminal png truecolor') > > g('set grid') > > g('set style data histograms') # give gnuplot an > > arbitrary command > > g('set style fill solid 1.00 border -1') > > g('set xlabel "page_number"') > > g('set ylabel "number of writes"') > > g('set autoscale') > > g.plot(data using 2:xtic(1) title "Oct-09 data growth(gb)", '' > > using 3 title "Nov-09 data growth(gb)", '' using 4 title "Dec-09 data > > growth(gb)") > > g.hardcopy("blah.png",terminal="png") > > raw_input('Press enter to continue...\n') > > #************************************************************* > > ****************** > > > > #************************************************************* > > ****************** > > def file_open2(DataFile): > > #Open the file > > # print "open" > > try: > > data_file = open(DataFile, "r") #open the file > > data_points=data_file.read() #save the file in a list > > line_points=data_points.split('\n') #split > > the file by new lines > > data_file.close() > > except IOError, e: > > print >> sys.stderr, "File Open Error:", e > > sys.exit(2) > > > > reg_exp=re.compile(r"\s+") #reg_exp for separate each > > token in the list > > mem=[[]] > > print "Putting data in an array" > > for i in range(len(line_points)-1): > > mem_line=reg_exp.split(line_points[i]) > > for j in range(len(mem_line)): > > if j==0: > > mem[i].append((mem_line[j])) > > else: > > mem[i].append(float(mem_line[j])) > > mem.append([]) > > mem.pop() > > return mem > > #************************************************************* > > ****************** > > > > if __name__ == '__main__': > > plot2D(file_open2(sys.argv[1])) > > > > > > the file that have the data contains: > > > > hdisk2 420 425 410 > > hdisk3 700 780 760 > > hdisk4 450 450 452 > > hdisk5 680 702 690 > > hdisk6 320 330 329 > > hdisk7 530 515 514 > > > > I really appreciate any help. Thank you > > > > -- > > Best Regards > > Roberto > > > > -------------------------------------------------------------- > > ---------------- > > Try before you buy = See our experts in action! > > The most comprehensive online learning library for Microsoft > > developers is just $99.99! Visual Studio, SharePoint, SQL - > > plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future > > releases when you subscribe now! > > http://p.sf.net/sfu/learndevnow-dev2 > > _______________________________________________ > > Gnuplot-py-users mailing list > > Gnu...@li... > > https://lists.sourceforge.net/lists/listinfo/gnuplot-py-users > > |
From: <e....@nk...> - 2012-02-20 16:40:06
|
As far as I can tell, this line is wrong g.plot(data using 2:xtic(1) title "Oct-09 data growth(gb)", '' using 3 title "Nov-09 data growth(gb)", '' using 4 title "Dec-09 data growth(gb)") you must create the data like this data = [ Gnuplot.Data(x0 , y0 , title="Nov-09 etc") , Gnuplot.Data(x1 , y1 , title="Dec-09 etc") , ] where x0,y0 (etc) are the data arrays, then plot it with g.plot(*data) Edo > -----Original Message----- > From: Roberto Rodríguez-Rodríguez [mailto:ro...@gm...] > Sent: Monday, February 20, 2012 5:20 PM > To: gnu...@li... > Subject: [Gnuplot-py-users] Problem working with xtics > > Hi, I need to do a bar graph with categories, I found these example > > http://www.ibm.com/developerworks/aix/library/au-gnuplot/index.html > > I need to do something similar, for many data. I tried to > replicate the example on python. I wrote the respective code > I append it at the end of the message. > > but I got these error: > File "./graph.py", line 119 > g.plot(data using 2:xtic(1) title "Oct-09 data growth(gb)", '' > using 3 title "Nov-09 data growth(gb)", '' using 4 title "Dec-09 data > growth(gb)") > ^ > SyntaxError: invalid syntax > > The function fileopen2 is just for parsing the file with the > data, I got a matrix wich I tried to graph. The problem is > with the plot command, I don't know how to manage categories > with gnuplot.py, I have looking in the web in several places > but all the examples don't touch these part. > > these is my code > > #! /usr/bin/env python > > import Gnuplot, Gnuplot.funcutils, sys > import sys > import re > import math > > #************************************************************* > ****************** > def plot2D(data): > print sys.maxint > g = Gnuplot.Gnuplot() #persist=1) > g.title('Memory writes') > g('set terminal png truecolor') > g('set grid') > g('set style data histograms') # give gnuplot an > arbitrary command > g('set style fill solid 1.00 border -1') > g('set xlabel "page_number"') > g('set ylabel "number of writes"') > g('set autoscale') > g.plot(data using 2:xtic(1) title "Oct-09 data growth(gb)", '' > using 3 title "Nov-09 data growth(gb)", '' using 4 title "Dec-09 data > growth(gb)") > g.hardcopy("blah.png",terminal="png") > raw_input('Press enter to continue...\n') > #************************************************************* > ****************** > > #************************************************************* > ****************** > def file_open2(DataFile): > #Open the file > # print "open" > try: > data_file = open(DataFile, "r") #open the file > data_points=data_file.read() #save the file in a list > line_points=data_points.split('\n') #split > the file by new lines > data_file.close() > except IOError, e: > print >> sys.stderr, "File Open Error:", e > sys.exit(2) > > reg_exp=re.compile(r"\s+") #reg_exp for separate each > token in the list > mem=[[]] > print "Putting data in an array" > for i in range(len(line_points)-1): > mem_line=reg_exp.split(line_points[i]) > for j in range(len(mem_line)): > if j==0: > mem[i].append((mem_line[j])) > else: > mem[i].append(float(mem_line[j])) > mem.append([]) > mem.pop() > return mem > #************************************************************* > ****************** > > if __name__ == '__main__': > plot2D(file_open2(sys.argv[1])) > > > the file that have the data contains: > > hdisk2 420 425 410 > hdisk3 700 780 760 > hdisk4 450 450 452 > hdisk5 680 702 690 > hdisk6 320 330 329 > hdisk7 530 515 514 > > I really appreciate any help. Thank you > > -- > Best Regards > Roberto > > -------------------------------------------------------------- > ---------------- > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft > developers is just $99.99! Visual Studio, SharePoint, SQL - > plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future > releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gnuplot-py-users mailing list > Gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-py-users > |
From: Roberto Rodríguez-R. <ro...@gm...> - 2012-02-20 16:19:50
|
Hi, I need to do a bar graph with categories, I found these example http://www.ibm.com/developerworks/aix/library/au-gnuplot/index.html I need to do something similar, for many data. I tried to replicate the example on python. I wrote the respective code I append it at the end of the message. but I got these error: File "./graph.py", line 119 g.plot(data using 2:xtic(1) title "Oct-09 data growth(gb)", '' using 3 title "Nov-09 data growth(gb)", '' using 4 title "Dec-09 data growth(gb)") ^ SyntaxError: invalid syntax The function fileopen2 is just for parsing the file with the data, I got a matrix wich I tried to graph. The problem is with the plot command, I don't know how to manage categories with gnuplot.py, I have looking in the web in several places but all the examples don't touch these part. these is my code #! /usr/bin/env python import Gnuplot, Gnuplot.funcutils, sys import sys import re import math #******************************************************************************* def plot2D(data): print sys.maxint g = Gnuplot.Gnuplot() #persist=1) g.title('Memory writes') g('set terminal png truecolor') g('set grid') g('set style data histograms') # give gnuplot an arbitrary command g('set style fill solid 1.00 border -1') g('set xlabel "page_number"') g('set ylabel "number of writes"') g('set autoscale') g.plot(data using 2:xtic(1) title "Oct-09 data growth(gb)", '' using 3 title "Nov-09 data growth(gb)", '' using 4 title "Dec-09 data growth(gb)") g.hardcopy("blah.png",terminal="png") raw_input('Press enter to continue...\n') #******************************************************************************* #******************************************************************************* def file_open2(DataFile): #Open the file # print "open" try: data_file = open(DataFile, "r") #open the file data_points=data_file.read() #save the file in a list line_points=data_points.split('\n') #split the file by new lines data_file.close() except IOError, e: print >> sys.stderr, "File Open Error:", e sys.exit(2) reg_exp=re.compile(r"\s+") #reg_exp for separate each token in the list mem=[[]] print "Putting data in an array" for i in range(len(line_points)-1): mem_line=reg_exp.split(line_points[i]) for j in range(len(mem_line)): if j==0: mem[i].append((mem_line[j])) else: mem[i].append(float(mem_line[j])) mem.append([]) mem.pop() return mem #******************************************************************************* if __name__ == '__main__': plot2D(file_open2(sys.argv[1])) the file that have the data contains: hdisk2 420 425 410 hdisk3 700 780 760 hdisk4 450 450 452 hdisk5 680 702 690 hdisk6 320 330 329 hdisk7 530 515 514 I really appreciate any help. Thank you -- Best Regards Roberto |