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: Armand A. <arm...@gm...> - 2020-08-25 16:23:17
|
Working on Mac High Sierra 10.13.6 Downloaded gnuplot-py-1.8.zip unzip gnuplot-py-1.8.zip python setup.py install running install_lib creating /Library/Python/2.7/site-packages/Gnuplot error: could not create '/Library/Python/2.7/site-packages/Gnuplot': Permission denied Please let me know if it is possible to get around this error. Thanks. Armand Attia arm...@gm... |
From: Michael H. <mh...@al...> - 2018-01-12 16:11:10
|
On Wed, Jan 10, 2018 at 8:02 PM, allu krishna <kri...@gm...> wrote: > I am working on a project in python language. I came to know about > gnuplot-py module. In my project there is a necessity to use "gnuplot fit". > Where a small piece of code given below to be implemented, > > gnuplot> f(x,y)=a*exp(-(b)/x)*y**(c) > gnuplot> fit f(x,y) 'GNUPLOT_INPUT_TGA1.dat' using 1:2:3:(1) via a,b,c > > I want to implement the above two lines of code in my project via > gnuplot-py. I am wondering whether is it possible to implement "gnuplot fit" > concept in my python code via gnuplot-py ? You can pass arbitrary commands to gnuplot via Gnuplot.py, like >>> import Gnuplot >>> g = Gnuplot.Gnuplot() >>> g('plot sin(x)') However, if you want to get the numerical results of the fit, then you will somehow have to parse the output emitted by gnuplot. Currently the communication is one-directional, so that would take some work. Alternatively, I think gnuplot writes a logfile while fitting. You could parse the contents of that file. Michael |
From: allu k. <kri...@gm...> - 2018-01-10 19:02:41
|
Hello, I am working on a project in python language. I came to know about gnuplot-py module. In my project there is a necessity to use "gnuplot fit". Where a small piece of code given below to be implemented, gnuplot> f(x,y)=a*exp(-(b)/x)*y**(c) gnuplot> fit f(x,y) 'GNUPLOT_INPUT_TGA1.dat' using 1:2:3:(1) via a,b,c I want to implement the above two lines of code in my project via gnuplot-py. I am wondering whether is it possible to implement "gnuplot fit" concept in my python code via gnuplot-py ? If it is possible to do so, can anyone please give me small hint of how to do it. Thanks & Regards, Krishna. |
From: Ankur S. <san...@gm...> - 2016-06-22 09:35:07
|
Hello, I was wondering if anyone knew of any plans to support Python3? (I looked at the svn commits and the last one seems to be a few years ago now) -- Thanks, Regards, Ankur Sinha "FranciscoD" http://fedoraproject.org/wiki/User:Ankursinha |
From: Salman S. <sal...@gm...> - 2016-02-10 15:13:11
|
Doh, stupid mistake, I figured it out, once I assigned the values to x, y and z using np.loadtxt, I don't need the using 1, etc.. I am not good at python but this was my first foray into writing the code. Now, I got a script that parses a massive file, extracts the data and generates a plot all from the command line. #! /usr/bin/python #import sys import numpy as np import Gnuplot, Gnuplot.PlotItems, Gnuplot.funcutils fobj = open("rwtc", "r") x, y, z = np.loadtxt(fobj, delimiter=' ', unpack=True) g = Gnuplot.Gnuplot() g.title('Dellingr RW Speed vs Time NM ') g.xlabel('time') g.ylabel('speed') g('set term png') g('set out "run.png"') g.plot(Gnuplot.Data(x, with_='line', title="x"), Gnuplot.Data(y, with_='line', title="y"), Gnuplot.Data(z, with_='line', title="z")) On Tue, Feb 9, 2016 at 6:03 PM, Salman Sheikh <sal...@gm...> wrote: > When I take the following script and run in python, I get gnuplot errors > for the data file shown below (shortened version). Any body able to see > what is wrong with my plot call? > > import numpy as np > import Gnuplot, Gnuplot.PlotItems, Gnuplot.funcutils > > fobj = open("rwtc", "r") > x, y, z = np.loadtxt(fobj, delimiter=' ', unpack=True) > > g = Gnuplot.Gnuplot() > g.title('RW Speed vs Time NM ') > g.xlabel('time') > g.ylabel('speed') > g('set term png') > g('set out "run.png"') > g.plot(Gnuplot.Data(x, using='1', with_='line', title="x"), > Gnuplot.Data(y, using='2', with_='line', title="y"), > Gnuplot.Data(z, using='3', with_='line', title="z")) > > You can use this as the file rwtc > > 0.000402 -0.000017 0.000821 > 0.000402 -0.000017 0.000821 > 0.000605 -0.000188 0.001000 > 0.000365 0.000083 0.000197 > 0.000343 0.000162 0.000060 > 0.000323 0.000214 -0.000009 > 0.000308 0.000226 0.000010 > 0.000294 0.000229 0.000047 > 0.000281 0.000232 0.000086 > 0.000266 0.000237 0.000120 > 0.000248 0.000245 0.000144 > 0.000227 0.000255 0.000160 > 0.000202 0.000266 0.000168 > 0.000174 0.000278 0.000170 > > Thanks. > > Salman > > > > > On Tue, Feb 9, 2016 at 6:00 PM, Salman Sheikh <sal...@gm...> > wrote: > >> Anybody can tell me why this file isn't working right? >> >> >> >> -- >> Even a Smile is charity :) >> - Prophet Muhammad >> >> >> > > > -- > Even a Smile is charity :) > - Prophet Muhammad > > > -- Even a Smile is charity :) - Prophet Muhammad |
From: Bernhard H. <b.h...@fz...> - 2016-02-10 10:40:52
|
Hey, I am not fully sure if I understand what you are trying to do, but "using 1" does not really make sense. If you plot 2D- you have to specify at least 2 columns, like "using 1:2". Are you trying to do a 3D-Plot? On 02/10/2016 12:03 AM, Salman Sheikh wrote: > When I take the following script and run in python, I get gnuplot errors > for the data file shown below (shortened version). Any body able to see > what is wrong with my plot call? > > import numpy as np > import Gnuplot, Gnuplot.PlotItems, Gnuplot.funcutils > > fobj = open("rwtc", "r") > x, y, z = np.loadtxt(fobj, delimiter=' ', unpack=True) > > g = Gnuplot.Gnuplot() > g.title('RW Speed vs Time NM ') > g.xlabel('time') > g.ylabel('speed') > g('set term png') > g('set out "run.png"') > g.plot(Gnuplot.Data(x, using='1', with_='line', title="x"), > Gnuplot.Data(y, using='2', with_='line', title="y"), > Gnuplot.Data(z, using='3', with_='line', title="z")) > > You can use this as the file rwtc > > 0.000402 -0.000017 0.000821 > 0.000402 -0.000017 0.000821 > 0.000605 -0.000188 0.001000 > 0.000365 0.000083 0.000197 > 0.000343 0.000162 0.000060 > 0.000323 0.000214 -0.000009 > 0.000308 0.000226 0.000010 > 0.000294 0.000229 0.000047 > 0.000281 0.000232 0.000086 > 0.000266 0.000237 0.000120 > 0.000248 0.000245 0.000144 > 0.000227 0.000255 0.000160 > 0.000202 0.000266 0.000168 > 0.000174 0.000278 0.000170 > > Thanks. > > Salman > > > > On Tue, Feb 9, 2016 at 6:00 PM, Salman Sheikh <sal...@gm... > <mailto:sal...@gm...>> wrote: > > Anybody can tell me why this file isn't working right? > > > > -- > Even a Smile is charity :) > - Prophet Muhammad > > > > > > -- > Even a Smile is charity :) > - Prophet Muhammad > > > > > ------------------------------------------------------------------------------ > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 > > > > _______________________________________________ > Gnuplot-py-users mailing list > Gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-py-users > -- Bernhard Hopfenmüller Jülich Centre for Neutron Science JCNS Forschungszentrum Jülich GmbH Outstation at MLZ Lichtenbergstraße 1 85747 Garching GERMANY email: b.h...@fz... phone: +49 89 289 10744 |
From: Salman S. <sal...@gm...> - 2016-02-09 23:03:10
|
When I take the following script and run in python, I get gnuplot errors for the data file shown below (shortened version). Any body able to see what is wrong with my plot call? import numpy as np import Gnuplot, Gnuplot.PlotItems, Gnuplot.funcutils fobj = open("rwtc", "r") x, y, z = np.loadtxt(fobj, delimiter=' ', unpack=True) g = Gnuplot.Gnuplot() g.title('RW Speed vs Time NM ') g.xlabel('time') g.ylabel('speed') g('set term png') g('set out "run.png"') g.plot(Gnuplot.Data(x, using='1', with_='line', title="x"), Gnuplot.Data(y, using='2', with_='line', title="y"), Gnuplot.Data(z, using='3', with_='line', title="z")) You can use this as the file rwtc 0.000402 -0.000017 0.000821 0.000402 -0.000017 0.000821 0.000605 -0.000188 0.001000 0.000365 0.000083 0.000197 0.000343 0.000162 0.000060 0.000323 0.000214 -0.000009 0.000308 0.000226 0.000010 0.000294 0.000229 0.000047 0.000281 0.000232 0.000086 0.000266 0.000237 0.000120 0.000248 0.000245 0.000144 0.000227 0.000255 0.000160 0.000202 0.000266 0.000168 0.000174 0.000278 0.000170 Thanks. Salman On Tue, Feb 9, 2016 at 6:00 PM, Salman Sheikh <sal...@gm...> wrote: > Anybody can tell me why this file isn't working right? > > > > -- > Even a Smile is charity :) > - Prophet Muhammad > > > -- Even a Smile is charity :) - Prophet Muhammad |
From: Salman S. <sal...@gm...> - 2016-02-09 23:00:06
|
Anybody can tell me why this file isn't working right? -- Even a Smile is charity :) - Prophet Muhammad |
From: Bernhard H. <b.h...@fz...> - 2015-12-22 16:28:43
|
Hey! Thank you for your reply! In the meantime I was able to solve the issue and I of course will share it with you: One can use the set_option(with_= ) function to assign the desired styles. apple_style ="errorbars lt 4 lc 9" set_option(with_= apple_style) For myself I wrote a function "obtain_group_by_file_name(groupname)" that returns an output string containing the desired plot style: apple_style ="errorbars lt 4 lc 9" pear_style = "errorbars lt 6 lc 5" def obtain_group_by_file(fruit,arg): return = str( eval(fruit+"_style")) In my loop I then generate a Gnuplot.File() for every file [file1_apple.txt file2_apple.txt file3_apple.txt file1_pear.txt file2_pear.txt,...], assign the desired style and append it to one list. Eventually I plot only that one list: plotlist = [] for cur_file in fileList: group = files.split("_")[1] f = Gnuplot.File(cur_file) f.set_option(with_= obtain_group_by_file_name(group)) plotlist.append(f) g.plot(*plotlist) So in principle I did what you suggested: Making one list for plotting. However thank you for your suggestion! Best, Bernhard Am 22.12.2015 um 16:51 schrieb Michael Haggerty: On 12/18/2015 04:13 PM, Bernhard Hopfenmüller wrote: Dear Gnuplot-py-user List, I have a problem I cannot quite solve, maybe somebody has a good idea? So I have a script plotting all files of one folder in one graph. I have the files already in a list "fileList": Files belong to one of 2 groups, eg: file1_apple.txt file2_apple.txt file3_apple.txt file1_pear.txt file2_pear.txt . . . I want now all files of one group to be plotted with the same symbol and color. How do I do this? It is sadly not working as I indicate it here for cur_file in fileList: group = files.split("_")[1] if group== "apple": f = Gnuplot.File(cur_file) f.set_option(with_='points', linecolor = , linestyle = ) f.set_option(title=apple) plotlist_apple.append(f) if group == "pear": f = Gnuplot.File(cur_file) f.set_option(with_='points', linecolor =, linestyle = ) f.set_option(title=pear) plotlist_pear.append(f) #print plotlist g.plot(*plotlist_pear,*plotlist_apple) Also has anybody a hint how to plot that afterwards in one plot? Your example isn't complete so it's hard to be sure. But at least part of the problem is that the last line has a syntax error. It is not possible to pass two splatted lists to a single function invocation in this way. (Why not? I don't know. It seems like a reasonable thing to do. But whatever.) Instead, try g.plot(*(plotlist_pear + plotlist_apple)) ; i.e., combine the lists into a single list and then splat the big list into the function call. If that doesn't help, then please give us a more complete example, including what you see and the error output if any. Yours, Michael ------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------ Forschungszentrum Juelich GmbH 52425 Juelich Sitz der Gesellschaft: Juelich Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498 Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender), Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt, Prof. Dr. Sebastian M. Schmidt ------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------ |
From: Michael H. <mh...@al...> - 2015-12-22 15:51:16
|
On 12/18/2015 04:13 PM, Bernhard Hopfenmüller wrote: > > Dear Gnuplot-py-user List, > > I have a problem I cannot quite solve, maybe somebody has a good idea? > > So I have a script plotting all files of one folder in one graph. > I have the files already in a list "fileList": > Files belong to one of 2 groups, eg: > > file1_apple.txt > file2_apple.txt > file3_apple.txt > file1_pear.txt > file2_pear.txt > . > . > . > > > I want now all files of one group to be plotted with the same symbol and > color. How do I do this? > It is sadly not working as I indicate it here > > for cur_file in fileList: > group = files.split("_")[1] > > if group== "apple": > f = Gnuplot.File(cur_file) > f.set_option(with_='points', linecolor = , linestyle = ) > f.set_option(title=apple) > plotlist_apple.append(f) > > if group == "pear": > f = Gnuplot.File(cur_file) > f.set_option(with_='points', linecolor =, linestyle = ) > f.set_option(title=pear) > plotlist_pear.append(f) > > #print plotlist > g.plot(*plotlist_pear,*plotlist_apple) > > Also has anybody a hint how to plot that afterwards in one plot? Your example isn't complete so it's hard to be sure. But at least part of the problem is that the last line has a syntax error. It is not possible to pass two splatted lists to a single function invocation in this way. (Why not? I don't know. It seems like a reasonable thing to do. But whatever.) Instead, try g.plot(*(plotlist_pear + plotlist_apple)) ; i.e., combine the lists into a single list and then splat the big list into the function call. If that doesn't help, then please give us a more complete example, including what you see and the error output if any. Yours, Michael -- Michael Haggerty mh...@al... |
From: Bernhard H. <b.h...@fz...> - 2015-12-18 15:14:30
|
Dear Gnuplot-py-user List, I have a problem I cannot quite solve, maybe somebody has a good idea? So I have a script plotting all files of one folder in one graph. I have the files already in a list "fileList": Files belong to one of 2 groups, eg: file1_apple.txt file2_apple.txt file3_apple.txt file1_pear.txt file2_pear.txt . . . I want now all files of one group to be plotted with the same symbol and color. How do I do this? It is sadly not working as I indicate it here for cur_file in fileList: group = files.split("_")[1] if group== "apple": f = Gnuplot.File(cur_file) f.set_option(with_='points', linecolor = , linestyle = ) f.set_option(title=apple) plotlist_apple.append(f) if group == "pear": f = Gnuplot.File(cur_file) f.set_option(with_='points', linecolor =, linestyle = ) f.set_option(title=pear) plotlist_pear.append(f) #print plotlist g.plot(*plotlist_pear,*plotlist_apple) Also has anybody a hint how to plot that afterwards in one plot? Any help is highly appreciated! Thank you very much in advance! Best, Bernhard Hopfenmüller ------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------ Forschungszentrum Juelich GmbH 52425 Juelich Sitz der Gesellschaft: Juelich Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498 Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender), Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt, Prof. Dr. Sebastian M. Schmidt ------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------ |
From: luis n. <lui...@gm...> - 2015-02-04 07:04:09
|
Hi everyone, I would to know what is the bast way to handle datetime for the x axis. for example I have a datetime objects in a list and an numpy array in the other. I tried many things, among them I tried this: g=Gnuplot.Gnuplot(debug=1,persist=True) g.reset() g('set xdata time') g('set timefmt "%s"') g('set format x "%M:%S"') fecha=datetime(year,month,day) times=[] data=[] for iobj in objects: data.append(iobj.data) times.append((iobj.datetime-datetime(1970,1,1,tzinfo=pytz.UTC)).total_seconds()) data=numpy.array(data) times=numpy.array(times) gnudata = Gnuplot.Data(times,data,using=(1,2),with_='line',title='mean') g.plot(gnudata) Thanks. -- Atte. Luis Navarro Domínguez |
From: Sean M. <sma...@gm...> - 2014-09-09 01:27:07
|
The problem is still there if I put in a long call (5 - 10 seconds) to time.sleep after the plot. I am running this within a python interpreter, so the python thread gets to run as long as it needs. Just to mess around a bit more, I also tried it by putting it within a file then running it from the shell, with something like $ python2 analysis.py And I'm still getting the same factorize error. On Mon, Sep 8, 2014 at 7:47 AM, Michael Haggerty <mh...@al...> wrote: > On 09/08/2014 02:38 AM, Sean Mattingly wrote: > > I would just like to report my experience / trouble so that others may > > find solace if they have a similar problem. > > > > I have code which makes a basic 2 dimensional Gaussian function. I want > > to make a basic surface plot of this function, just to see what it looks > > like. I have found that using Gnuplot.GridData function with the > > optional filename argument enabled, so that it creates a permanent file, > > works. If I leave out the "filename=test.bin" option, the program > > defaults to the temporary FIFO class, and Gnuplot (4.6) is unable to > > read and properly facorize the matrix. > > Problems like this could occur if the FIFO gets deleted too soon or the > Python thread that is supposed to write into the FIFO is killed too > soon. Does the problem go away if you put a long call to time.sleep > after the plot command? > > It is also possible that newer versions of Gnuplot want to read through > the file twice. This would be incompatible with the FIFO code, which is > only prepared to write the content into the FIFO a single time. > > Michael > > -- > Michael Haggerty > mh...@al... > > |
From: Michael H. <mh...@al...> - 2014-09-08 12:47:54
|
On 09/08/2014 02:38 AM, Sean Mattingly wrote: > I would just like to report my experience / trouble so that others may > find solace if they have a similar problem. > > I have code which makes a basic 2 dimensional Gaussian function. I want > to make a basic surface plot of this function, just to see what it looks > like. I have found that using Gnuplot.GridData function with the > optional filename argument enabled, so that it creates a permanent file, > works. If I leave out the "filename=test.bin" option, the program > defaults to the temporary FIFO class, and Gnuplot (4.6) is unable to > read and properly facorize the matrix. Problems like this could occur if the FIFO gets deleted too soon or the Python thread that is supposed to write into the FIFO is killed too soon. Does the problem go away if you put a long call to time.sleep after the plot command? It is also possible that newer versions of Gnuplot want to read through the file twice. This would be incompatible with the FIFO code, which is only prepared to write the content into the FIFO a single time. Michael -- Michael Haggerty mh...@al... |
From: Sean M. <sma...@gm...> - 2014-09-08 00:38:14
|
Hi, I would just like to report my experience / trouble so that others may find solace if they have a similar problem. I have code which makes a basic 2 dimensional Gaussian function. I want to make a basic surface plot of this function, just to see what it looks like. I have found that using Gnuplot.GridData function with the optional filename argument enabled, so that it creates a permanent file, works. If I leave out the "filename=test.bin" option, the program defaults to the temporary FIFO class, and Gnuplot (4.6) is unable to read and properly facorize the matrix. My code, as a sample: [code] #!/usr/bin/python2 import Gnuplot import numpy as np g1 = Gnuplot.Gnuplot(debug=1) #Let's try making a single contour plot of a windowing function, using #Gnuplot. t = np.linspace(-1000, 1000,2001) / 1e5 tc = 0.004 ts = t [Xg,Yg] = np.meshgrid(ts, ts) corr2win = np.exp(-(Xg/tc)**2 - (Yg/tc)**2 - (Xg * Yg) / (tc)**2) #Plot the window using GNUPlot. g1.title('2 Dimensional Windowing Function') g1('set parametric') g1('set dgrid3d 20, 20, 1') g1.xlabel('Time (s)') g1('set hidden3d') g1('set style data lines') g1('set pm3d') g1.ylabel('TIme (s)') g1.splot(Gnuplot.GridData(corr2win, ts, ts, binary=1, filename='test.bin')) [/code] If I run the splot command without the filename flag in GridData, I get the following error: line 0: File doesn't factorize into full matrix My relevant version information is (all x86_64 builds where applicable): Kernel: x86_64 Linux 3.16.1-1-ARCH Python2.7.8 Ipython 2.2.0 gnuplot 4.6 python2-gnuplot 1.8.3 (as found on the AUR: https://www.archlinux.org/packages/community/any/python2-gnuplot/ Anyways, I'm just putting this out since I didn't find anyone else with a similar problem. Hope this helps. Cheers, Sean |
From: Michael H. <mh...@al...> - 2014-02-28 10:01:42
|
On 02/27/2014 11:24 AM, Richard Reinicke wrote: > I’m not very experienced in Python yet and I’m new to Gnuplot.py. I > recently installed gnuplot and gnuplot.py and successfully tested to > import the package but when I try to run the demo with > > python demo.py > > I get the following errors: > > exceptions.IOError:[Errno 22] Invalid argument > [...] > File "C:\Python25\Lib\site-packages\Gnuplot\gp_win32.py", line 130, in > __call__ > self.flush() > IOError: [Errno 22] Invalid argument >>>> > > I successfully installed Win32 extensions for python 2.5 which is added > to PATH and PYTHONPATH windows system variables. > > Does anybody knows the reason of my problem? I think this is the usual indication that gnuplot (the plotting program) either isn't installed correctly or can't be found by Gnuplot.py. Michael -- Michael Haggerty mh...@al... http://softwareswirl.blogspot.com/ |
From: Richard R. <r.r...@36...> - 2014-02-27 10:39:10
|
Hi everybody, I'm not very experienced in Python yet and I'm new to Gnuplot.py. I recently installed gnuplot and gnuplot.py and successfully tested to import the package but when I try to run the demo with python demo.py I get the following errors: exceptions.IOError:[Errno 22] Invalid argument Traceback (most recent call last): File "<string>", line 254, in run_nodebug File "C:\Python25\Lib\site-packages\Gnuplot\demo.py", line 110, in <module> demo() File "C:\Python25\Lib\site-packages\Gnuplot\demo.py", line 36, in demo g.reset() File "C:\Python25\lib\site-packages\Gnuplot\_Gnuplot.py", line 366, in reset self('reset') File "C:\Python25\lib\site-packages\Gnuplot\_Gnuplot.py", line 210, in __call__ self.gnuplot(s) File "C:\Python25\Lib\site-packages\Gnuplot\gp_win32.py", line 130, in __call__ self.flush() IOError: [Errno 22] Invalid argument >>> I successfully installed Win32 extensions for python 2.5 which is added to PATH and PYTHONPATH windows system variables. Does anybody knows the reason of my problem? Kind regards Richard 360plus Consult GmbH Karlstr. 54 D - 76133 Karlsruhe fon +49 7 21 46 46 39 - 17 fax +49 7 21 46 46 39 - 50 Sitz der Gesellschaft: Karlsruhe Amtsgericht: Mannheim HRB 704798 Gesch?ftsf?hrer: Dr. Wolfgang Bauer USt-IdNr. DE256085397 |
From: Richard B. L. <ric...@gm...> - 2014-01-23 15:42:27
|
I have a list of names/titles in a list called x. I have corresponding float values in list y. I wish to plot the y values with the xtic labels equal to the text values in list x. How would I do that in Python? In plain Gnuplot, I think something like Plot "file.name" using 5:xticlabels(1) would work. Thanks. |
From: Richard B. L. <la...@un...> - 2013-12-10 14:26:28
|
Thanks, Michael. Works! -- Richard On Tuesday, December 10, 2013,344, at 3:53 AM, Michael Haggerty wrote: > On 12/10/2013 04:54 AM, Richard Langley wrote: >> In a Python script, I compute the value of a variable. Let's call it >> cep. I then want to draw a circle whose radius is cep. I would like to >> have something like >> >> cep = (some calculation producing a float value) >> g('set parametric') >> g('set trange [0:2*pi]') >> g('fx(t) = cep*cos(t)') >> g('fy(t) = cep*sin(t)') >> e = Gnuplot.Func('fx(t),fy(t)') >> g.plot(e) >> >> but that doesn't work, it seems, as gnuplot doesn't know the value >> of cep ("undefined variable: cep"). So how does one pass an arbitrary >> variable value to gnuplot-py? > > g('cep = %s' % (cep,)) > > There is no shortcut for this, but it wouldn't be difficult to build one. > > Michael > > -- > Michael Haggerty > mh...@al... > http://softwareswirl.blogspot.com/ ----------------------------------------------------------------------------- | 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: Paul v. H. <pau...@gm...> - 2013-12-10 12:51:22
|
I tried to unsubscribe my email from the gnu plot mailing list on this page: https://lists.sourceforge.net/lists/listinfo/gnuplot-info However, having now tried 3-4 times I never get an unsubscribe confirmation email. Therefore, I see no choice instead of asking to unsubscribe me manually from the list. Thanks Paul |
From: Michael H. <mh...@al...> - 2013-12-10 07:53:55
|
On 12/10/2013 04:54 AM, Richard Langley wrote: > In a Python script, I compute the value of a variable. Let's call it > cep. I then want to draw a circle whose radius is cep. I would like to > have something like > > cep = (some calculation producing a float value) > g('set parametric') > g('set trange [0:2*pi]') > g('fx(t) = cep*cos(t)') > g('fy(t) = cep*sin(t)') > e = Gnuplot.Func('fx(t),fy(t)') > g.plot(e) > > but that doesn't work, it seems, as gnuplot doesn't know the value > of cep ("undefined variable: cep"). So how does one pass an arbitrary > variable value to gnuplot-py? g('cep = %s' % (cep,)) There is no shortcut for this, but it wouldn't be difficult to build one. Michael -- Michael Haggerty mh...@al... http://softwareswirl.blogspot.com/ |
From: Richard L. <la...@un...> - 2013-12-10 03:54:37
|
In a Python script, I compute the value of a variable. Let's call it cep. I then want to draw a circle whose radius is cep. I would like to have something like cep = (some calculation producing a float value) g('set parametric') g('set trange [0:2*pi]') g('fx(t) = cep*cos(t)') g('fy(t) = cep*sin(t)') e = Gnuplot.Func('fx(t),fy(t)') g.plot(e) but that doesn't work, it seems, as gnuplot doesn't know the value of cep ("undefined variable: cep"). So how does one pass an arbitrary variable value to gnuplot-py? -- 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: Richard L. <la...@un...> - 2013-12-10 03:46:02
|
Michael: Neither of those suggestions seemed to work. However, in the float_array function in utils.py, simply changing "return numpy.asarray(m, numpy.float32)" to "return numpy.asarray(m, numpy.float64)" did the trick for me. I have another question, but I'll ask it in a separate e-mail. -- Richard ----------------------------------------------------------------------------- | 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 Haggerty [mh...@al...] Sent: Monday, December 09, 2013 11:09 AM To: Richard Langley Cc: gnu...@li... Subject: Re: [Gnuplot-py-users] Resolution of Plots On 12/09/2013 03:40 PM, Richard B. Langley wrote: > On Monday, December 9, 2013,343, at 3:47 AM, Michael Haggerty wrote: >> 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', >> ) > Thanks, Michael, but, sadly, that did not work. > -- Richard Hmm, sorry, I thought I had built something like that in. If so, it would have been more then 10 years ago, so I hope you will forgive me :-) The formatting is done by the function write_array() in the file utils.py. The individual elements are formatted using '%s'. If you change that to '%r' (in two places) or '%.20g' or something like that, I think you'll get what you want. Or, of course, you can always write the data to a file yourself, similar to how PlotItems.Data() does it. Michael -- Michael Haggerty mh...@al... http://softwareswirl.blogspot.com/ |
From: Michael H. <mh...@al...> - 2013-12-09 15:09:44
|
On 12/09/2013 03:40 PM, Richard B. Langley wrote: > On Monday, December 9, 2013,343, at 3:47 AM, Michael Haggerty wrote: >> 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', >> ) > Thanks, Michael, but, sadly, that did not work. > -- Richard Hmm, sorry, I thought I had built something like that in. If so, it would have been more then 10 years ago, so I hope you will forgive me :-) The formatting is done by the function write_array() in the file utils.py. The individual elements are formatted using '%s'. If you change that to '%r' (in two places) or '%.20g' or something like that, I think you'll get what you want. Or, of course, you can always write the data to a file yourself, similar to how PlotItems.Data() does it. Michael -- Michael Haggerty mh...@al... http://softwareswirl.blogspot.com/ |
From: Richard B. L. <la...@un...> - 2013-12-09 14:40:59
|
Thanks, Michael, but, sadly, that did not work. -- Richard On Monday, December 9, 2013,343, at 3:47 AM, Michael Haggerty wrote: > 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/ ----------------------------------------------------------------------------- | 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/ | ----------------------------------------------------------------------------- |