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...> - 2006-06-14 16:33:21
|
John Parejko wrote: > I've been having trouble using multiple replot commands, ie: > > g.plot(Gnuplot.Data(dataset[0])) > for i in xrange(1,len(dataset)): > g.replot(Gnuplot.Data(dataset[i])) > > After about the 40th row in dataset, I start getting errors like this: > > gnuplot> 1961992.5 0.0 2.47496008873 > ^ > line 31995: invalid command > > gnuplot> e It doesn't make sense to use replot() for this, because after each call to replot() the plot is re-drawn (first with 1 dataset, then 2, then 3, etc.) The total work goes like len(dataset)**2. Something like g.plot(*[Gnuplot.Data(d) for d in dataset]) should do the whole thing in one shot. I don't know if the extreme inefficiency is the cause for the failure, but it certainly can't help. > (if inline == 1) and sometimes about bad filenames (seems to be system > dependent) if inline = 0. Eventually the plot seems to come out > correctly, but I can't verify that all the rows are actually being > plotted. Is this a bug, or am I going about this all wrong? I want to > overlay a bunch (~100) of different lines on the same plot, and then > possibly an averaged line in dark black on top of that. > > I can put sample code and plots up somewhere for reference... If it is appropriate to your application, it is also possible to combine multiple curves into a single file by separating them with blank lines. (The blank line basically says "lift the pen before plotting the next point"). There are typically operating system limits on the number of files that may be open at once, which could also cause problems. There might also be limits on the number of named pipes; I'm not sure. Michael |
From: Michael H. <mh...@al...> - 2006-06-14 16:02:10
|
Michael Haggerty wrote: > Is there anybody out there who can program in Python and would be > interested in taking over the maintenance of Gnuplot.py? I am happy to announce that John Parejko has volunteered to work on the Gnuplot.py project. I've just granted him developer privileges at SourceForge. I hope he can give the project some of the care and attention that it has been missing for a long time! That is not, of course, to say that other volunteers are not welcome :-) And everybody is encouraged to chip in, not only with writing code, but also with updating documentation, answering questions on the mailing list, testing, etc, etc... Welcome John! Michael |
From: Ole C. W. <ole...@ae...> - 2006-06-07 21:01:07
|
Hi gnuplot.py-users I'm developing a small Python program which creates a gnuplot command stack out of large time-based scientific 1D and 2D datasets. Every gnuplot command on the stack represents a frame of an animation and you have some player-like Tk-controls to start/stop the animation and step through it. When you press "play" a slider moves from left to right on tick (after a adjustable delay) for every frame and triggers gnuplot.py to render the data. Although gnuplot is quite fast with rendering, sometimes the amount of point-data for a single frame is too huge and rendering takes longer than the given delay between to frames. Result: the slider moves faster than gnuplot can render - and this is ugly... So my question is: is there any callback mechanism implemented in gnuplot.py which is fired every time gnuplot is done with rendering? If not, would it be easy to implement it or do you have any other ideas that could solve my problem? Thanks & Regards, Ole ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Ole Christian Weidner Max-Planck-Institute for Gravitational Physics eScience Group Am Mühlenberg 1 D-14476 Potsdam, Germany email: ole...@ae... ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
From: Ole C. W. <ole...@ae...> - 2006-06-06 12:13:35
|
Hi Daniel, I think it's impossible to create monochrome png images just by adding the "monochrome" option, because the "png"-terminal does not support it, unlike the "postscript"-terminal. It's not gnuplot.py's fault ;-) gnuplot> help set terminal postscript Several options may be set in the `postscript` driver. Syntax: set terminal postscript {<mode>} {enhanced | noenhanced} {color | colour | monochrome} {blacktext | colortext | colourtext} {solid | dashed} {dashlength | dl <DL>} {linewidth | lw <LW>} {<duplexing>} {rounded | butt} {fontfile [add | delete] "<filename>"} {palfuncparam <samples>{,<maxdeviation>}} {"<fontname>"} {<fontsize>} gnuplot> help set terminal png Syntax: set terminal png {{no}transparent} {{no}interlace} {tiny | small | medium | large | giant} {font <face> {<pointsize>}} {size <x>,<y>} {{no}crop} {{no}enhanced} {<color0> <color1> <color2> ...} The only way to create a monochrome png is to define your own monochrome palette with the png-terminal's color options. Here's an example from the gnuplot help: set terminal png medium size 640,480 \ xffffff x000000 x404040 \ xff0000 xffa500 x66cdaa xcdb5cd \ xadd8e6 x0000ff xdda0dd x9500d3 # defaults which uses white for the non-transparent background, black for borders, gray for the axes, and red, orange, medium aquamarine, thistle 3, light blue, blue, plum and dark violet for eight plotting colors. Cheers, Ole da...@we... wrote: > Hi, > > I am running gnuplot 4.0 and it seems to be imposible to create an monochrome > png: > this line: > > g.hardcopy("somename.png", terminal='png', monochrome= 1) > > gives me: > > gnuplot> set terminal png monochrome > ^ > line 0: invalid color spec, must be xRRGGBB > > Furthermore I would like to know how I can move the description line (the > title) for a plot like this: > g.plot(Gnuplot.Data(tmp1, title = "C^1_{t}", with="lines")) > > this: > g.plot(Gnuplot.Data(tmp1, title = "C^1_{t}", with="lines", offset = (1,1)) > does not work for me. > > Thank you very much, > > Daniel > > > _______________________________________________ > Gnuplot-py-users mailing list > Gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-py-users > > |
From: <da...@we...> - 2006-06-05 15:23:51
|
Hi, I am running gnuplot 4.0 and it seems to be imposible to create an monochro= me=20 png: this line: g.hardcopy("somename.png", terminal=3D'png', monochrome=3D 1) gives me: gnuplot> set terminal png monochrome =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ^ =A0 =A0 =A0 =A0 =A0line 0: invalid color spec, must be xRRGGBB =46urthermore I would like to know how I can move the description line (the= =20 title) for a plot like this: g.plot(Gnuplot.Data(tmp1, title =3D "C^1_{t}", with=3D"lines")) this: g.plot(Gnuplot.Data(tmp1, title =3D "C^1_{t}", with=3D"lines", offset =3D (= 1,1)) does not work for me. Thank you very much, Daniel |
From: Alan G I. <ai...@am...> - 2006-05-17 12:10:41
|
On Wed, 17 May 2006, Basima Al-Shuqurat apparently wrote: > I don't know what are you mean by typing "python setup.py install". > Whrer can I do that I was working on (win xp) Start/Programs/Accessories/CommandPrompt See http://www.tldp.net/LDP/abs/html/dosbatch.html for useful commands. hth, Alan Isaac |
From: Basima Al-S. <bas...@mo...> - 2006-05-17 07:32:36
|
Dear all=20 I have the problem when I install the gnuplot.py package what is the step to install it .iwas follow this step Quick instructions: 1. Download gnuplot-py-1.7.tar.gz or gnuplot-py-1.7.zip. 2. Extract the archive to a temporary directory. 3. Install by changing to the directory and typing "python setup.py install". Installation on Windows ----------------------- I don't run Windows, but thanks to the help of users there is now a way to use Gnuplot.py on that platform. Any feedback or additional suggestions having to do with Windows would be especially appreciated. If you are using a version of Python prior to 2.0, you must install the quasi-standard Win32 extensions. This can be obtained from the main Windows download page:=20 http://www.python.org/download/download_windows.html Because the main MS-Windows gnuplot executable (wgnuplot.exe) doesn't accept commands on standard input, Gnuplot.py cannot communicate with it directly. However, there is a simple little program called `pgnuplot.exe' that accepts commands on stdin and passes them to wgnuplot. So to run Gnuplot.py on Windows, you need to make sure that pgnuplot.exe is installed. It comes with gnuplot since at least version 3.7.1. Alternatively you can get pgnuplot.exe alone by downloading `testing/windows-stdin.zip' from one of the gnuplot archives (e.g., <ftp://ftp.gnuplot.info/pub/gnuplot/testing/windows-stdin.zip>). Gnuplot.py uses Python distutils <http://www.python.org/doc/current/inst/inst.html> and can be installed by untarring the package, changing into the top-level directory, and typing "python setup.py install". The Gnuplot.py package is pure Python--no compilation is necessary. I don't know what are you mean by typing "python setup.py install". Whrer can I do that I was working on (win xp) I don't know how can I do I install gnuplot program and the other numeric extention and python program=20 Please help me=20 =20 |
From: Fernando P. <Fer...@co...> - 2006-05-09 00:53:23
|
Michael Haggerty wrote: > John Parejko wrote: >>Along those lines: it appears noone else took up the offer to become the >>Gnuplot.py maintainer. I sent a private message to Michael expressing >>my interest (and noting that it will be a bit before I can really take >>over), but I guess I'll post my interest here. I'm using Gnuplot pretty >>heavily, and would like its development to continue (and get it ported >>to numpy). It's probably worth noting that the numpy port should be nearly trivial, given that Gnuplot.py doesn't really make extensive use of any sophisticated/weird features of Numeric. On another note, if you (John) continue to maintain Gnuplot.py, you may be interested in merging some of the code in IPython.Gnuplot2.py: http://projects.scipy.org/ipython/ipython/browser/ipython/trunk/IPython/Gnuplot2.py I think some of the enhancements there are worthwhile, and sent them to Michael a while ago but I know his priorities have moved from Gnuplot.py development. I also have stopped using this code at all (I'm using matplotlib these days), but I'd be happy to see this code continue to be useful to gnuplot users. The following utility module may also be of use, that's the one I actually imported in all my top-level code: http://projects.scipy.org/ipython/ipython/browser/ipython/trunk/IPython/GnuplotRuntime.py Cheers, f |
From: Michael H. <mh...@al...> - 2006-05-09 00:44:54
|
John Parejko wrote: > float_array(m) will downcast sometimes. I'm not sure of the exact > reasons, but I had points disappearing from my plots that were ~> 3e38, > which is the single-precision float size. tuples were going in that > were correct, but whatever was coming out wasn't... That is very likely. I think I reasoned that floating point precision was enough for creating plots that will be plotted at most at a few hundred dpi. But of course floating point has limited exponent range, too, and you are apparently reaching that limit. IIRC, you can pass this routine Numeric arrays of higher-than-float precision, in which case they will not be downcasted. But also be sure you have checked that gnuplot itself is not truncating your data. I don't know if it uses float or double internally. gnuplot also has some setting for "minimum number not considered to be zero" that is sometimes confusing (though not in your case). It shouldn't be too big a deal to change the default Gnuplot.py casting to "double" for your plots. (Whether that should be a new universal default could also be discussed.) > Along those lines: it appears noone else took up the offer to become the > Gnuplot.py maintainer. I sent a private message to Michael expressing > my interest (and noting that it will be a bit before I can really take > over), but I guess I'll post my interest here. I'm using Gnuplot pretty > heavily, and would like its development to continue (and get it ported > to numpy). > > Was there any interest on the scipy mailing lists? I didn't get around to asking because (a) I don't have any real connection to that community and (b) I don't have time to look into it. This would be an excellent task for a volunteer :-) Good luck with your orals! Michael |
From: John P. <par...@sp...> - 2006-05-08 19:46:23
|
float_array(m) will downcast sometimes. I'm not sure of the exact reasons, but I had points disappearing from my plots that were ~> 3e38, which is the single-precision float size. tuples were going in that were correct, but whatever was coming out wasn't... I don't have time to dig into a fix right now (orals on the way), but I'll definitely look into it later. Along those lines: it appears noone else took up the offer to become the Gnuplot.py maintainer. I sent a private message to Michael expressing my interest (and noting that it will be a bit before I can really take over), but I guess I'll post my interest here. I'm using Gnuplot pretty heavily, and would like its development to continue (and get it ported to numpy). Was there any interest on the scipy mailing lists? Cheers John -- ************************* John Parejko Department of Physics and Astronomy 215 895-2786 Drexel University Philadelphia, PA ************************** |
From: kevin p. <kp...@ma...> - 2006-04-30 02:31:37
|
okay... i've googled for about an hour and still don't seem my answer... I am using "arrows" to plot a time line that has |-------------| This kind of style. But since the time line is long i would also like to include labels in my data that would show the start -duration - end of my data in better precision that i can eyeball it looking at the xlabel... so that i might get something that looks like : 1.121 (2.1) 3.221 |-----------------------------| # ------------------------------[ snip ] --------------------------------- #! /usr/bin/env python """arrows.py -- a plot of the durations Usage: $ python arrows.py data.txt """ import sys import Gnuplot def main(): # First let's get our data form an external file and stuff it in a list [filename] = sys.argv[1:] all = [] for l in open(filename).readlines(): l = l.strip().split() all.append( [ float(l[0]), float(l[1]), float(l[2]), int(l[3]) ] ) # Split the data into four datasets by stream # Each data set will be drawn in 'vector' style with a different color allData = [] # This will contain the four datasets for stream in [1, 2, 3, 4]: # Select the raw data for the stream rawData = [ item for item in all if item[3] == stream ] # Make a Gnuplot.Data to contain the raw data data = Gnuplot.Data(rawData, using=(1, 3, 2, '(0)'), # This gives 1-based index into the # data for x, y, xdelta, ydelta # ydelta is a literal 0 with='vectors arrowstyle %s' % stream) # This sets the style of the dataset styles are defined below #title='Voice %s' % stream) # This names the dataset for the legend allData.append(data) # Set up general plot parameters g = Gnuplot.Gnuplot(debug=1) g.title('Overview') # (optional) g.xlabel('Time') g.ylabel('Event') g('set grid') #g('set xtics (10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140)') g('set ytics (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)') # These lines create four vector styles that have bars at each end # The only difference between the styles is the line type they use, # which determines the color # Shamelessly cribbed from the gnuplot arrowstyle demo g('set style line 1 lt 1 lw 2') # Set a line style for the vectors g('set style line 2 lt 2 lw 2') g('set style line 3 lt 3 lw 2') g('set style line 4 lt 4 lw 2') # Set an arrow style for the vectors g('set style arrow 1 heads size screen 0.008,90 ls 1') g('set style arrow 2 heads size screen 0.008,90 ls 2') g('set style arrow 3 heads size screen 0.008,90 ls 3') g('set style arrow 4 heads size screen 0.008,90 ls 4') #g('set key outside box') # Include a legend; put it outside the graph # This actually does the plot # The * makes it treat the elements of allData as individual function arguments # It is the same as g.plot(allData[0], allData[1], allData[2], allData[3] g.plot(*allData) if __name__ == '__main__': main() # data here: 1.0 52.98151020408163 1 1 53.98151020408163 360.0 2 2 153.98151020408164 100.0 3 3 254.61807619047627 60.0 4 4 316.94841360544211 60.0 5 1 378.66877120181414 30.0 6 2 409.28659297052155 30.0 7 3 440.74881179138322 24.0 8 4 465.75744104308387 60.0 9 1 496.08856235827682 60.0 10 2 557.0976548752833 60.0 11 3 |
From: Alan G I. <ai...@am...> - 2006-04-26 18:24:21
|
Hi Michael, While as an occasional user I cannot offer to be maintainer, I can offer to help a new maintainer test numpy support. Also, I suggest posting your query to the SciPy list, as my impression is that a numer of Gnuplot.py users lurk there. Cheers, Alan Isaac |
From: Michael H. <mh...@al...> - 2006-04-26 08:55:12
|
Hello, It should be obvious to everybody by now that I haven't had the time or energy to invest in Gnuplot.py for quite some time now. When I established the project, I used it almost daily. But since I started my current job five years ago, I haven't used Gnuplot.py more than a handful of times. And now that I am involved in another open-source project (cvs2svn), I want to spend my limited available time on that project. For a long time this wasn't much of a problem, because Gnuplot.py did most of the things people needed and didn't require much maintenance. (Not that I can't think of nice new features to add, but...) But now there are a few things that really need to be done: - Support for numarray. This is a relatively small job but very important. - Get Gnuplot.py listed on http://www.python.org/pypi (The Python Cheese Shop). - Updated the documentation and website to point at the new Subversion repository rather than the old CVS one. - Look over and possibly integrate some patches that have been submitted to the mailing list over the past months and years. - Make a new release. It's been ages, and a few things have changed. Sooooo..... Is there anybody out there who can program in Python and would be interested in taking over the maintenance of Gnuplot.py? I'd be happy to help you get up to speed and answer occasional questions. Yours, Michael |
From: John P. <par...@dr...> - 2006-04-24 16:19:48
|
Hello. I've been having trouble using multiple replot commands, ie: g.plot(Gnuplot.Data(dataset[0])) for i in xrange(1,len(dataset)): g.replot(Gnuplot.Data(dataset[i])) After about the 40th row in dataset, I start getting errors like this: gnuplot> 1961992.5 0.0 2.47496008873 ^ line 31995: invalid command gnuplot> e (if inline == 1) and sometimes about bad filenames (seems to be system dependent) if inline = 0. Eventually the plot seems to come out correctly, but I can't verify that all the rows are actually being plotted. Is this a bug, or am I going about this all wrong? I want to overlay a bunch (~100) of different lines on the same plot, and then possibly an averaged line in dark black on top of that. I can put sample code and plots up somewhere for reference... Oh, this is on Debian Stable (but the bad filename errors tend to crop up on a Gentoo box, which I don't have administrative access to). Thanks for your help. John -- ************************* John Parejko Department of Physics and Astronomy 215 895-2786 Drexel University Philadelphia, PA ************************** |
From: Michael H. <mh...@al...> - 2006-04-20 07:32:14
|
Adriaan . wrote: > I am looking to do some curve fitting and I am wondering if gnuplot-py > will be accept the gnuplot curve fit commands via similar methods as you > would generate a normal plot (ie. using the Gnuplot.Gnuplot() object)? > > Has anyone tried this or know if it is implemented? This has been discussed on the mailing list a couple of times before. Please search the archive. The bottom line is that there is no built-in support in Gnuplot.py for the "fit" function, but it shouldn't be much effort to invoke it explicitly and read the output back into Python. Michael |
From: Adriaan . <adr...@ho...> - 2006-04-19 05:22:57
|
Hi all, I am looking to do some curve fitting and I am wondering if gnuplot-py will be accept the gnuplot curve fit commands via similar methods as you would generate a normal plot (ie. using the Gnuplot.Gnuplot() object)? Has anyone tried this or know if it is implemented? Cheers, Adriaan |
From: Michael H. <mh...@al...> - 2006-03-10 16:24:34
|
Cecilia Di Chio wrote: > Hi, > I've just started to use Gnuplot-py, and I'm having some trouble in > plotting circles... > I know that to plot circles in gnuplot one has to use the parametric > expression x=sin(t) y=cos(t), and then plot [0:2*pi] r*sin(t)+j, > r*cos(t)+k, where r is the radius and (j,k) the coordinates of the centre... > My problem is that the radius and the coodinates of the centre are > "python object" and gnuplot doesn't allow me to use them inside a > gnuplot call. > To clarify: > ... > for i in range (numOfCircles) > r = sizeOfCircle[0,i] > j = circlePos[:,i,0] > k = circlePos[:,i,1] > ... > > What I would like to do is > g('plot [0:2*pi] r*sin(t)+j, r*cos(t)+k') > but gnuplot-py doesn't recognise r, j and k ("undefined variable" error). > > Can anyone help me to solve this problem? > Thanks very much, > Cecilia gnuplot is not really a great tool for plotting lots and lots of circles. But if you want to do it, you could do something like: import Gnuplot circleparams = [ (0, 0, 1), (1, 0, 0.2), (0.5, 0, 0.5), ] g = Gnuplot.Gnuplot() g('set parametric') g('set trange [0:2*pi]') plotitems = [] for (x,y,r) in circleparams: plotitems.extend([ Gnuplot.Func('%g + %g*cos(t)' % (x,r,)), Gnuplot.Func('%g + %g*sin(t)' % (y,r,)), ]) g.plot(*plotitems) raw_input() Michael |
From: Juho S. <juh...@as...> - 2006-03-07 07:39:22
|
On Mon, 6 Mar 2006, William Baxter wrote: >Does gnuplot-py-1.7 only work with Numeric? Are there plans to make it >compatible with numarray? > I use numarray - I just replaced all import Numeric => import numarray as Numeric in the source and it works for me. I think both Numeric and numarray will be replaced in near future with numpy, so I would rather have numpy support... Of course, something like try: import numpy as NumericPackage except ImportError: try: import numarray as NumericPackage except ImportError: try: import Numeric as NumericPackage except ImportError: raise UnholyError, 'numpy, numarray, or Numeric not found.' would be the best option. -- Juho Schultz e-mail: juh...@as... phone: +358-50-4081854 web: www.astro.helsinki.fi/~jschultz Observatory FIN-00014 University of Helsinki FINLAND |
From: William B. <bb...@wa...> - 2006-03-07 01:17:13
|
Does gnuplot-py-1.7 only work with Numeric? Are there plans to make it compatible with numarray? -- William T. Baxter, Ph.D. Wadsworth Center Empire State Plaza, PO Box 509 Albany, NY 12201-0509 |
From: Cecilia Di C. <cd...@es...> - 2006-03-01 14:34:37
|
Hi, I've just started to use Gnuplot-py, and I'm having some trouble in = plotting circles... I know that to plot circles in gnuplot one has to use the parametric = expression x=3Dsin(t) y=3Dcos(t), and then plot [0:2*pi] r*sin(t)+j, = r*cos(t)+k, where r is the radius and (j,k) the coordinates of the = centre... My problem is that the radius and the coodinates of the centre are = "python object" and gnuplot doesn't allow me to use them inside a = gnuplot call. To clarify: ... for i in range (numOfCircles) r =3D sizeOfCircle[0,i] j =3D circlePos[:,i,0] k =3D circlePos[:,i,1] ... What I would like to do is g('plot [0:2*pi] r*sin(t)+j, r*cos(t)+k') but gnuplot-py doesn't recognise r, j and k ("undefined variable" = error). Can anyone help me to solve this problem? Thanks very much, Cecilia Cecilia Di Chio Department of Computer Science University of Essex Wivenhoe Park Colchester CO4 3SQ, UK phone +44 (0)1206 873111 email cd...@es... http://privatewww.essex.ac.uk/~cdichi/ "If you have a simple idea, state it simply." (W.D. Hamilton) |
From: Michael H. <mh...@al...> - 2006-02-20 18:57:52
|
Sebastian Krause wrote: > The fit for my data looks really good. But the most important thing for > me would be, to be able to read in the values of my parameters which > Gnuplot calculated, to Python. Is this possible? If yes, how? The following mailing list post might be helpful: http://sourceforge.net/mailarchive/message.php?msg_id=5687034 Michael |
From: Alan G I. <ai...@am...> - 2006-02-20 13:59:59
|
On Mon, 20 Feb 2006, Sebastian Krause apparently wrote: > I checked SciPy, but as > far as I could see, it can only handle spline fits http://www.scipy.org/Cookbook/OptimizationDemo1 hth, Alan Isaac |
From: Sebastian K. <seb...@gm...> - 2006-02-20 11:40:48
|
Hello, I've got a problem and I don't know how to solve it: A wrote a Python which reads in some experimental data, performs some calculations and writes new data (array) to a file. Then I needed a tool which can perform fits with arbitrary functions and parameters -- I found Gnuplot. The fit for my data looks really good. But the most important thing for me would be, to be able to read in the values of my parameters which Gnuplot calculated, to Python. Is this possible? If yes, how? Or is there another program which can do these fits (I checked SciPy, but as far as I could see, it can only handle spline fits)? With my Python script I have to read in several hundered data sets, doing the fit with Gnuplot (and hopefully reading in the parameters to Python), but anyway working with Gnuplot's fit.log file "manually" is no option. Thanks for your advice. Best regards, Sebastian Krause |
From: Noel O'B. <no...@ca...> - 2006-02-15 09:17:30
|
On Tue, 2006-02-14 at 19:52 -0800, Conor Robinson wrote: > I seem to be throwing an error with python interperting > "numeric_version" as an actual module. I was thinking about changing > the install script, but know that I must be doing something else wrong > to begin with. Any ideas? numeric_version *is* a module: $ python >>> import numeric_version >>> numeric_version.version '23.8' locate numeric_version: /usr/lib/python2.4/site-packages/Numeric/numeric_version.py Do you have numeric_version.py on your system somewhere? Regards, Noel > Thanks, > Conor > > [gremlins:~/desktop/gnuplot-py-1.7] conorrob% python setup.py install > Traceback (most recent call last): > File "setup.py", line 17, in ? > from __init__ import __version__ > File "/Users/conorrob/Desktop/gnuplot-py-1.7/__init__.py", line 167, in ? > from PlotItems import PlotItem, Func, File, Data, GridData > File "/Users/conorrob/Desktop/gnuplot-py-1.7/PlotItems.py", line 26, in ? > import Numeric > File "/Users/conorrob/Library/Python/2.4/site-packages/Numeric/Numeric.py", > line 87, in ? > import numeric_version > ImportError: No module named numeric_version > [gremlins:~/desktop/gnuplot-py-1.7] conorrob% > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 > _______________________________________________ > Gnuplot-py-users mailing list > Gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-py-users |
From: Conor R. <con...@gm...> - 2006-02-15 03:52:33
|
I seem to be throwing an error with python interperting "numeric_version" as an actual module. I was thinking about changing the install script, but know that I must be doing something else wrong to begin with. Any ideas? Thanks, Conor [gremlins:~/desktop/gnuplot-py-1.7] conorrob% python setup.py install Traceback (most recent call last): File "setup.py", line 17, in ? from __init__ import __version__ File "/Users/conorrob/Desktop/gnuplot-py-1.7/__init__.py", line 167, in ? from PlotItems import PlotItem, Func, File, Data, GridData File "/Users/conorrob/Desktop/gnuplot-py-1.7/PlotItems.py", line 26, in ? import Numeric File "/Users/conorrob/Library/Python/2.4/site-packages/Numeric/Numeric.py= ", line 87, in ? import numeric_version ImportError: No module named numeric_version [gremlins:~/desktop/gnuplot-py-1.7] conorrob% |