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: Thomas P. <tho...@lu...> - 2005-04-18 09:10:28
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello everyone, I'm not yet a subscriber to this list, so please send at least a CC of your answers to me personally. I have basically the same question as Geoff Low had in his post ' Plotting time formats in gnuplot-py <http://sourceforge.net/mailarchive/message.php?msg_id=10079214> ' on 2004-11-18 01:45 I used gnuplot.py quite extensively a couple of years ago and I really loved it, except for the problem that the gnuplot process needed the 'using' keyword when plotting time-series data. As the PlotItems of that time didn't allow setting the using-keyword I was forced to work with temporary files which takes away much of the speed and comfort of having python controlling gnuplot. Recently I'm again doing more visualization of time-series and I have tried to utilize gnuplot's rather limited batch-file capabilities using nested 'call's to achieve my goals. But that still means a lot of duplication of code, which I would like to avoid. I have also tried IDL, but I found that gnuplot's defaults make up much better images and the cusomization is much easier with gnuplot even though IDL is basically more powerful if you have enough time to tweak it the way you want (and this is what I don't have, as usual :-) ). So my question is, if there is any way to trick the gnuplot process into using python-arrays that contain time-series information without resorting to temporary files? I would be back to gnuplot and python in no time :-) Best regards, Thomas - -- _______________________________________________________ Dipl.-Ing Thomas Pfaff, M.Eng. Dr.-Ing. Karl Ludwig Beratender Ingenieur Wasserwirtschaft - Wasserbau Herrenstr. 14 76133 Karlsruhe Tel: 0721 / 91251-46 Fax: 0721 / 91251-19 tho...@lu... -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCY3mQ08tF9hMUUtURAs4PAJ914UfbQJ8rHgfh+bZ18awa7HxGCQCeIMiu eQSED6U2ouz7Lt7CbzRqe7E= =1l1d -----END PGP SIGNATURE----- |
From: Edurne D. <ed...@ke...> - 2005-04-18 08:39:30
|
Hello, I have some troubles with Gnuplot. I'm working with python gnuplot.py module. I don't know why an error message appears in my screen when trying to draw a plot. This is the message: Traceback (most recent call last): File "<stdin>", line 1, in ? File "graficas.py", line 55 Gnuplot.plot 'fichero0' with linespoints, 'fichero1' with linespoints ^ SyntaxError: invalid syntax How must the be the name of the file so that I can call it without problems?? when I create these files with python I don't give them any extension since it seems not to be necessary. I would be also pleased if you could help me with another question: can I change names to every point in the axis?? I mean... I want to represent dates in the Xaxis. To do so I have previously converted those dates to seconds with python since I know the file must contain just numbers. But once I have created the files I don't want to see the X axis divided into numbers, but into dates, so can I change the names of the divisions of the axis? And in case it must be divided into many points.... can I make my graph to move horizontally with the help of any kind of bar?is there any way to create it? Thank you very very much for your help!! Edurne from Spain. |
From: sven <sv...@su...> - 2005-04-11 12:29:20
|
hi, i'm using gnuplot to plot waveforms and sonograms under windows. as i'm having up to 10 plotwindows on the screen it would be nice to have the possibility to set the positions and sizes of the windows from py. is it possible and if so, how? sven. |
From: Karl E. <um...@cc...> - 2005-02-08 16:48:15
|
In order to allow the use of numarray instead of Numeric for gnuplot I suggest changing all the import Numeric lines to: try: import Numeric except: try: import numarray Numeric=numarray except: raise Which seems to work... |
From: Juho S. <juh...@as...> - 2005-02-08 07:31:32
|
Hi, When I need to plot both lines and points (data and fitted model) I use something like this: plt1 = Gnuplot.Gnuplot() plt1.plot(Gnuplot.Data(MJD,most_flux,most_err,with='yerrorbars 1')) plt1.replot(Gnuplot.Data(MJD,flux_fit,with='lines 1')) -- Juho Schultz e-mail: juh...@as... www.astro.helsinki.fi/~jschultz Observatory P.O. Box 14 FIN-00014 University of Helsinki FINLAND On Mon, 7 Feb 2005, Jette Krause wrote: >Hallo, > >I need to plot some curves and a data point into one diagram. I can't >find out how to tell Gnuplot to use different linestyles for different >items ("lines" for the curves and "points" for data) when plotting from >a python script. > >E.g., if I write > >g=Gnuplot.Gnuplot() >g('set data style lines'), > >the plotting command for the point is not executed (naturally...). >But is there a way to give a data style different from the general on, >e.g in the plotting command? > >I tried things like >g.plot(a,b,c,k with points) >where a to c are the curves and k should be the point, but it does not work. > >I would be grateful for any help. > >Greetings, Jette > > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >_______________________________________________ >Gnuplot-py-users mailing list >Gnu...@li... >https://lists.sourceforge.net/lists/listinfo/gnuplot-py-users > |
From: Fernando P. <Fer...@co...> - 2005-02-07 23:06:09
|
Jette Krause wrote: > Hallo, > > I need to plot some curves and a data point into one diagram. I can't > find out how to tell Gnuplot to use different linestyles for different > items ("lines" for the curves and "points" for data) when plotting from > a python script. > > E.g., if I write > > g=Gnuplot.Gnuplot() > g('set data style lines'), > > the plotting command for the point is not executed (naturally...). > But is there a way to give a data style different from the general on, > e.g in the plotting command? > > I tried things like > g.plot(a,b,c,k with points) > where a to c are the curves and k should be the point, but it does not work. > > I would be grateful for any help. I've moved away from gnuplot to matplotlib, but here's some old code which can get you going: if 0: #transcript = utils.TranscriptPrint('transcript_%s.ref' % max_band,start=True) print "*** OLDEST (REFERENCE) NATURAL-SCALE IMPLEMENTATION" all_r = {} lft_r = {} #phinsc = poisson._call_nsc_ref(rho,truncate,verbose,all_r,lft_r) phinsc = poisson._call_nsc_ref(rho,truncate,verbose) x,pnx = eval_diag(phinsc) nscref = GP.Data(x,pnx,title='Ref Nat-scale',with='linespoints lt 4') errornscr= GP.Data(x,abs(pxx-pnx),title='Slow (ref) Nat-scale error', with='lines lt 4') gp.replot(errornscr) #transcript.Stop() if 0: # Compare two implementations, which should agree to within roundoff gp.plot(x,N.absolute(pnx-px)) gp.replot(GP.Func('1e-16',with='lines lt 2')) if 0: print "*** REFERENCE 2-SCALE IMPLEMENTATION" phi2sc = poisson._call_2sc(rho) x,p2x = eval_diag(phi2sc) twosc = GP.Data(x,p2x,title='2-scale',with='linespoints lt 5') error2sc = GP.Data(x,abs(pxx-p2x),title='Two-scale error', with='lines lt 5') Cheers, f |
From: Jette K. <jet...@pi...> - 2005-02-07 10:40:18
|
Hallo, I need to plot some curves and a data point into one diagram. I can't find out how to tell Gnuplot to use different linestyles for different items ("lines" for the curves and "points" for data) when plotting from a python script. E.g., if I write g=Gnuplot.Gnuplot() g('set data style lines'), the plotting command for the point is not executed (naturally...). But is there a way to give a data style different from the general on, e.g in the plotting command? I tried things like g.plot(a,b,c,k with points) where a to c are the curves and k should be the point, but it does not work. I would be grateful for any help. Greetings, Jette |
From: Lozza H. <loz...@ho...> - 2005-01-11 03:14:09
|
Hey all! First time user here having problems trying to get the module to install. I'm running F3 and I'm actually having problems trying to get Numeric to install. My problem is that no one seems to be able to tell me what modules I need to install Numeric in the first place, apparently it can't find a bunch of files it needs. Hoping someone here had been through the same stuff and could help me out. Saludos, Lozza |
From: Geoff L. <gl...@cm...> - 2004-11-18 09:45:09
|
Hi Has anyone got plotting of time data working properly? I am trying to plot the following: toplot = [(time.mktime(x.DateGenerated), x.MemoryPercUsed, x.SwapPercUsed) for x in self.Resources] g = Gnuplot.Gnuplot() g.title('Resource Usage for carbon') g.xlabel('Date') g.ylabel('Resource Used') # g('set timefmt "%s"') # g('set xdata time') g('set data style linespoints') g.plot(toplot) and get gnuplot> plot '/tmp/tmp-8L_Ak' notitle ^ line 0: Need full using spec for x time data if the lines are uncommented. If anyone has some suggestions that would be excellent. Thanks Geoff |
From: kevin p. <ke...@ma...> - 2004-11-06 04:44:42
|
Michael Haggery, Thanks for taking the time to respond. This is a very elegant and instructive. I like the way that you set the styles in the styles dictionary. I would not have thought to do that. I wasn't aware that the data for Gnuplot.py, could also go into a separate file. That certainly makes for less cluttered code. I have be playing and tweeking the code you sent and tried 'steps' and linesplots and changing the grid. Everything works, but i wonder if there is not some more elegant way to represent this data. I am wondering if there is a way to not only use plot, but splot? Having x be the time (column 1), y be the value from column 2 and have z be the last value (column 4) and then having the linespoints being not only a different style but spread out on the z axis to boot. Perhaps that would be more salient? Problem is, when i try to change: items = [ Gnuplot.Data( subsets[value], with=styles[value], using=(1,3,), ) for value in values ] g.plot(*items) to use splot the whole thing barfs..... and i can't quite get my head around the splot entry in the manual. I wonder if you could suggest an splot approach that is more visually clear. It seems that splot is quite a different beast. In any case thanks for you instructions thus far. That is helpful handiwork in that script, a real pea-shooter! cheers, kevin On Nov 5, 2004, at 9:31 PM, Michael Haggerty wrote: > kevin parks wrote: > >> I have data that looks like: >> >> 0 5.5 0 1 >> 2 5.5 2 4 >> 4 5.5 4 2 >> 6 5.5 5 3 >> 8 5.5 7 1 >> 10 5.5 9 4 >> 12 5.5 11 3 >> 14 5.5 0 2 >> 16 5.5 2 1 >> 18 5.5 4 4 >> 20 5.5 5 3 > > > It's easiest if you put your data into a file in the above format, > rather than typing it into Python as a list constant. > >> [...] I would like to use splot and points of different colors to >> convey as much info as i can. The X axis would be the time axis (that >> would take care of the first two parameters) and the Y axis could be >> the third column. Then for the fouth item, there are only four >> possibilities (1, 2, 3, or 4), so i thought that i could use points >> of red, blue, green, black to indicate that. > > > I don't believe gnuplot offers a way to vary the style of points > depending on a data column, so I believe you should read the data into > Python, then use Python to pick it apart into four separate data sets, > then plot the four sets in one plot using four different data styles. > I believe the following script should do the trick. It uses some > newer python features (2.2?) so parts might have to be changed if you > are using an older version of python. Run it with the name of your > data file as command-line argument. > > |#! /usr/bin/env python > > import sys > import Numeric > import Gnuplot > > [filename] = sys.argv[1:] > > data = [] > > for l in open(filename).readlines(): > l = l.strip().split() > data.append([float(l[0]), float(l[1]), float(l[2]), int(l[3])]) > > values = [1,2,3,4] > > # Here you can adjust the style options for each subset. The > # interpretation of the numbers depends on what "terminal" you are > # using. > styles = { > 1 : 'points pt 1', > 2 : 'points pt 2', > 3 : 'points pt 3', > 4 : 'points pt 4', > } > > subsets = {} > for value in values: > subsets[value] = [l for l in data if l[3] == value] > > g = Gnuplot.Gnuplot() > items = [ > Gnuplot.Data( > subsets[value], > with=styles[value], > using=(1,3,), > ) > for value in values > ] > > g.plot(*items) > > raw_input('Press enter to continue') > > > Yours, > Michael > | > > -- > Michael Haggerty > mh...@al... > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Sybase ASE Linux Express Edition - download now for FREE > LinuxWorld Reader's Choice Award Winner for best database on Linux. > http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click > _______________________________________________ > Gnuplot-py-users mailing list > Gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-py-users |
From: Michael H. <mh...@ka...> - 2004-11-06 02:31:39
|
kevin parks wrote: > I have data that looks like: > > 0 5.5 0 1 > 2 5.5 2 4 > 4 5.5 4 2 > 6 5.5 5 3 > 8 5.5 7 1 > 10 5.5 9 4 > 12 5.5 11 3 > 14 5.5 0 2 > 16 5.5 2 1 > 18 5.5 4 4 > 20 5.5 5 3 It's easiest if you put your data into a file in the above format, rather than typing it into Python as a list constant. > [...] I would like to use splot and points of different colors to > convey as much info as i can. The X axis would be the time axis (that > would take care of the first two parameters) and the Y axis could be > the third column. Then for the fouth item, there are only four > possibilities (1, 2, 3, or 4), so i thought that i could use points of > red, blue, green, black to indicate that. I don't believe gnuplot offers a way to vary the style of points depending on a data column, so I believe you should read the data into Python, then use Python to pick it apart into four separate data sets, then plot the four sets in one plot using four different data styles. I believe the following script should do the trick. It uses some newer python features (2.2?) so parts might have to be changed if you are using an older version of python. Run it with the name of your data file as command-line argument. |#! /usr/bin/env python import sys import Numeric import Gnuplot [filename] = sys.argv[1:] data = [] for l in open(filename).readlines(): l = l.strip().split() data.append([float(l[0]), float(l[1]), float(l[2]), int(l[3])]) values = [1,2,3,4] # Here you can adjust the style options for each subset. The # interpretation of the numbers depends on what "terminal" you are # using. styles = { 1 : 'points pt 1', 2 : 'points pt 2', 3 : 'points pt 3', 4 : 'points pt 4', } subsets = {} for value in values: subsets[value] = [l for l in data if l[3] == value] g = Gnuplot.Gnuplot() items = [ Gnuplot.Data( subsets[value], with=styles[value], using=(1,3,), ) for value in values ] g.plot(*items) raw_input('Press enter to continue') Yours, Michael | -- Michael Haggerty mh...@al... |
From: kevin p. <ke...@ma...> - 2004-11-06 00:20:37
|
i have some data that would like to plot with Gnuplot-py and need to get a little fancier than i am used to. I have data that looks like: 0 5.5 0 1 2 5.5 2 4 4 5.5 4 2 6 5.5 5 3 8 5.5 7 1 10 5.5 9 4 12 5.5 11 3 14 5.5 0 2 16 5.5 2 1 18 5.5 4 4 20 5.5 5 3 The first number is the start time of the event. The second is the duration. The third is the event identifier and the last is what stream it belongs to. I would like to use splot and points of different colors to convey as much info as i can. The X axis would be the time axis (that would take care of the first two parameters) and the Y axis could be the third column. Then for the fouth item, there are only four possibilities (1, 2, 3, or 4), so i thought that i could use points of red, blue, green, black to indicate that. So that is where i am headed... But i have a long way to go and am a gnuplot novice and not a great Python hacker to boot.. Could anyone help me along? I would be grateful for any help. Cheers, kevin Here is some (*gasp*) code. ------------ [snip] ---------------- #! /usr/bin/env python from Numeric import * import Gnuplot, Gnuplot.funcutils def main(): all = [ [ 0, 5.5, 0, 1 ], [ 2, 5.5, 2, 4 ], [ 4, 5.5, 4, 2 ], [ 6, 5.5, 5, 3 ], [ 8, 5.5, 7, 1 ], [ 10, 5.5, 9, 4 ], [ 12, 5.5, 11, 3 ], [ 14, 5.5, 0, 2 ], [ 16, 5.5, 2, 1 ], [ 18, 5.5, 4, 4 ], [ 20, 5.5, 5, 3 ], [ 22, 5.5, 7, 2 ], [ 24, 5.5, 9, 1 ], [ 26, 5.5, 11, 4 ], [ 28, 5.5, 0, 3 ], [ 30, 5.5, 2, 2 ], [ 32, 5.5, 4, 1 ], [ 34, 5.5, 5, 3 ], [ 36, 5.5, 7, 4 ], [ 38, 5.5, 9, 2 ], [ 40, 5.5, 11, 3 ], [ 42, 5.5, 0, 4 ], [ 44, 5.5, 2, 1 ], [ 46, 5.5, 4, 2 ], [ 48, 5.5, 5, 4 ], [ 50, 5.5, 7, 3 ], [ 52, 5.5, 9, 1 ], [ 54, 5.5, 11, 2 ], [ 56, 5.5, 0, 4 ], [ 58, 5.5, 2, 1 ], [ 60, 5.5, 4, 3 ], [ 62, 5.5, 5, 2 ], [ 64, 5.5, 7, 4 ], [ 66, 5.5, 9, 3 ], [ 68, 5.5, 9, 1 ], [ 70, 5.5, 0, 2 ], [ 72, 5.5, 2, 4 ], [ 74, 5.5, 4, 1 ], [ 76, 5.5, 5, 2 ], [ 78, 5.5, 7, 3 ], [ 80, 5.5, 9, 4 ], [ 82, 11.5, 11, 2 ], [ 84, 5.5, 0, 1 ], [ 86, 5.5, 2, 3 ], [ 88, 7.5, 4, 4 ], [ 90, 11.5, 5, 1 ], [ 92, 5.5, 7, 3 ], [ 94, 3.5, 9, 2 ], [ 96, 7.5, 11, 4 ], [ 98, 7.5, 0, 2 ], [ 100, 11.5, 2, 3 ], [ 102, 5.5, 4, 1 ], [ 104, 7.5, 5, 4 ], [ 106, 11.5, 7, 2 ], [ 108, 5.5, 9, 1 ], [ 110, 5.5, 11, 3 ], [ 112, 8.5, 0, 4 ], [ 114, 5.5, 2, 1 ], [ 116, 5.5, 4, 3 ], [ 118, 5.5, 5, 2 ], [ 120, 9.5, 7, 1 ], [ 122, 3.5, 9, 4 ], [ 124, 3.5, 11, 2 ], [ 126, 5.5, 0, 3 ], [ 128, 5.5, 2, 2 ], [ 130, 5.5, 4, 1 ], [ 132, 5.5, 5, 3 ], [ 134, 10, 7, 2 ], [ 136, 8, 9, 4 ], [ 138, 6, 11, 1 ], [ 140, 4, 0, 3 ] ] g = Gnuplot.Gnuplot(debug=1) g.title('REALLY COOL GRAPH') # (optional) g.xlabel('Start Time') g.ylabel('Duration') g('set data style linespoints') # give gnuplot an arbitrary command # Plot a list of (x, y) pairs (tuples or a Numeric array would # also be OK): #g.plot([[0,1.1], [1,5.8], [2,3.3], [3,4.2]]) g.plot(all) raw_input('Please press return to continue...\n') g.reset() # -- --------------- print '############### test splot ##################################' #g.splot(Gnuplot.Data(all, with='linesp', inline=1,)) g.splot(Gnuplot.Data(all, using=(1,), with='points', inline=1,)) #g.plot(Gnuplot.Data(d, with='lp 4 4')) #g.plot(Gnuplot.Data(d, cols=(0,1), inline=0), #Gnuplot.Data(d, cols=(0,2), inline=0)) #g.plot(Gnuplot.Data(d, cols=(0,1), inline=1), #Gnuplot.Data(d, cols=(0,2), inline=1)) #g.splot(Gnuplot.Data(all, with='linesp', inline=1)) # when executed, just run main if __name__ == '__main__': main() ------------ [snip] ---------------- |
From: Tom K. <to...@ko...> - 2004-10-18 03:56:31
|
My error. It's clearly not your problem. I appreciate the debug=1 flag reminder. It certainly showed me that the gnuplot-py module was feeding everything to gnuplot appropriately. So, for the record, if this is the specification: > set terminal aqua {<n>} {title "<wintitle>"} {size <x> <y>} {fname > "<fontface>"} {fsize <fontsize>} Then this is incorrect: > plotobj('set terminal aqua size 800 450 fname "ComputerModern" fsize > 16') And this is correct: plotobj('set terminal aqua 0 title "MyPlot" size 800 450 fname "ComputerModern" fsize 16') Simple. Sorry. Tom |
From: Michael H. <mh...@ka...> - 2004-10-17 21:17:29
|
Tom Kornack wrote: > Is there any access to terminal options? I'm using Mac OS X, so I'd > like to be able to modify the aqua window size, fonts, etc: > > set terminal aqua {<n>} {title "<wintitle>"} {size <x> <y>} {fname > "<fontface>"} {fsize <fontsize>} > > Whenever I try to issue: > > plotobj = Gnuplot.Gnuplot() > plotobj('set terminal aqua size 800 450 fname "ComputerModern" fsize 16') > > and plot something it doesn't seem to take. Where should I look? Hmmm, that's strange. I don't know why that wouldn't work. There is one peculiarity with respect to terminals: after a call to plotobj.hardcopy(), the terminal set has to be set back to the "non-printer" terminal. In practice it does this by setting it back to GnuplotOpts.default_term, which for Mac OS X is set in gp_maxosx.py to be 'aqua'. But if you haven't done a hardcopy() this shouldn't affect you. As with many other problems with Gnuplot.py, try setting the debug option: plotobj = Gnuplot.Gnuplot(debug=1) This will print out each of the commands being sent to the gnuplot program and should help you figure out where the problem lies. Michael -- Michael Haggerty mh...@al... |
From: Tom K. <to...@ko...> - 2004-10-17 20:18:14
|
Is there any access to terminal options? I'm using Mac OS X, so I'd like to be able to modify the aqua window size, fonts, etc: set terminal aqua {<n>} {title "<wintitle>"} {size <x> <y>} {fname "<fontface>"} {fsize <fontsize>} Whenever I try to issue: plotobj = Gnuplot.Gnuplot() plotobj('set terminal aqua size 800 450 fname "ComputerModern" fsize 16') and plot something it doesn't seem to take. Where should I look? Tom |
From: Leonardo M. <lm...@ud...> - 2004-09-30 15:23:16
|
On Thursday 30 September 2004 10:39, Dee Wortman wrote: > > Thanks Leo, > > That's what I think is happening as well, but as you know, with gnuplot no way to prove it. I guess it is time to experience the world of Python and gnuplot-py. > > Thanks again, > Dee My pleasure :-) IMHO if you need a jump start, you may wanna: 1) Install Python + Numeric extension 2) Install gnuplot-py 3) Run and play with the test/sample code in Gnuplot-py. 4) quick read to the python tutorial 5) http://docs.python.org/tut/tut.html 6) get familiar with the docs, http://www.python.org/doc/ I always end up browsing the modules index: http://docs.python.org/modindex.html You'll need at least http://docs.python.org/lib/module-os.html http://docs.python.org/lib/module-os.path.html One afternoon and plenty of coffee/green tea should do, really! Gotta go, best! -- leo > > > I was thinking about using gnuplot-py to try to take of a problem I am having with gnuplot itself. I have a gnuplot script that runs in a endless 6 second loop (on purpose) that reads a data file that is updated with new data every 4 seconds. Eventually though, it will abort with the following message: > > > > > > gnuplot> plot 'gnuplot.txt' index 0 using 1:2 with points 09, > > 'gnuplot.txt' index 1 using 1:2 with points 04, > > 'gnuplot.txt' index 2 using 1:2 with points 03, > > 'deviation_upper.txt' thru (( $1 * $2)/(-10.*55.1))**2 with lines 12, > > 'deviation_lower.txt' thru ((($1 * $2)/(-10. *55.1))**2)* -1 with lines 12 , > > U_CPS2 with lines 11 , L_CPS2 with lines 11 > > ^ > > "/emsdat/santee/scripts/gplot/cps.pl", line 25395: no data point found in specified file > > > > Attached is the script and I would appreciate any suggestions on how to make it work before I dive into Python. If anyone thinks gnuplot-py can fix the problem I would be most thankful for some help in getting started. > > maybe gnuplot, everyonce in a while, trys to read a data file while it > is being updated ? If the period of data update and data reading from > gnuplot are 6 and 4 seqs, chances are they'll meet at 12, 24, 36 sec. (assuming > they start at the same time) > > The advantage I would see on using gnuplot-py is that. within a python > script, you can check for existance/sanity of the data files before > feeding the gnuplot. So, you could, within the loop: > > start endless loop: > * import data files data into python arrays if files exist > * check that the data is actually there, check types, value ranges, etc. > * plot > * wait some time > > Hope this helps, > Leo > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Gnuplot-py-users mailing list > Gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-py-users > > > > > ____________________ > Confidentiality Notice: > This message is intended exclusively for the individual or entity to which it is addressed. This communication may contain information that is proprietary, privileged, confidential or otherwise legally exempt from disclosure. If you are not the named addressee, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this message in error, please notify the sender immediately either by phone or reply to this e-mail, and delete all copies of this message. |
From: Dee W. <DAW...@sa...> - 2004-09-30 14:51:35
|
Thanks Leo, =0D That's what I think is happening as well, but as you know, with gnuplot no= way to prove it. I guess it is time to experience the world of Python and= gnuplot-py. =0D Thanks again, Dee >>> lm...@ud... 09/30/04 10:00AM >>> Hi Dee: > I was thinking about using gnuplot-py to try to take of a problem I am= having with gnuplot itself. I have a gnuplot script that runs in a= endless 6 second loop (on purpose) that reads a data file that is updated= with new data every 4 seconds. Eventually though, it will abort with the= following message: >=0D >=0D > gnuplot> plot 'gnuplot.txt' index 0 using 1:2 with points 09, =0D > 'gnuplot.txt' index 1 using 1:2 with points 04, > 'gnuplot.txt' index 2 using 1:2 with points 03, > 'deviation_upper.txt' thru (( $1 * $2)/(-10.*55.1))**2 = with lines 12, =0D > 'deviation_lower.txt' thru ((($1 * $2)/(-10. *55.1))**2)*= -1 with lines 12 , =0D > U_CPS2 with lines 11 , L_CPS2 with lines 11 > ^ > "/emsdat/santee/scripts/gplot/cps.pl", line 25395: no data point= found in specified file >=0D > Attached is the script and I would appreciate any suggestions on how to= make it work before I dive into Python. If anyone thinks gnuplot-py can= fix the problem I would be most thankful for some help in getting started. maybe gnuplot, everyonce in a while, trys to read a data file while it is being updated ? If the period of data update and data reading from gnuplot are 6 and 4 seqs, chances are they'll meet at 12, 24, 36 sec.= (assuming they start at the same time) The advantage I would see on using gnuplot-py is that. within a python script, you can check for existance/sanity of the data files before feeding the gnuplot. So, you could, within the loop: start endless loop: * import data files data into python arrays if files exist =0D * check that the data is actually there, check types, value ranges, etc. * plot * wait some time =0D Hope this helps, Leo =0D ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl=0D _______________________________________________ Gnuplot-py-users mailing list Gnu...@li...=0D https://lists.sourceforge.net/lists/listinfo/gnuplot-py-users=0D ____________________ Confidentiality Notice: This message is intended exclusively for the individual or entity to which= it is addressed. This communication may contain information that is= proprietary, privileged, confidential or otherwise legally exempt from= disclosure. If you are not the named addressee, you are not authorized to= read, print, retain, copy or disseminate this message or any part of it.= If you have received this message in error, please notify the sender= immediately either by phone or reply to this e-mail, and delete all copies= of this message. |
From: Leonardo M. <lm...@ud...> - 2004-09-30 13:57:05
|
Hi Dee: > I was thinking about using gnuplot-py to try to take of a problem I am having with gnuplot itself. I have a gnuplot script that runs in a endless 6 second loop (on purpose) that reads a data file that is updated with new data every 4 seconds. Eventually though, it will abort with the following message: > > > gnuplot> plot 'gnuplot.txt' index 0 using 1:2 with points 09, > 'gnuplot.txt' index 1 using 1:2 with points 04, > 'gnuplot.txt' index 2 using 1:2 with points 03, > 'deviation_upper.txt' thru (( $1 * $2)/(-10.*55.1))**2 with lines 12, > 'deviation_lower.txt' thru ((($1 * $2)/(-10. *55.1))**2)* -1 with lines 12 , > U_CPS2 with lines 11 , L_CPS2 with lines 11 > ^ > "/emsdat/santee/scripts/gplot/cps.pl", line 25395: no data point found in specified file > > Attached is the script and I would appreciate any suggestions on how to make it work before I dive into Python. If anyone thinks gnuplot-py can fix the problem I would be most thankful for some help in getting started. maybe gnuplot, everyonce in a while, trys to read a data file while it is being updated ? If the period of data update and data reading from gnuplot are 6 and 4 seqs, chances are they'll meet at 12, 24, 36 sec. (assuming they start at the same time) The advantage I would see on using gnuplot-py is that. within a python script, you can check for existance/sanity of the data files before feeding the gnuplot. So, you could, within the loop: start endless loop: * import data files data into python arrays if files exist * check that the data is actually there, check types, value ranges, etc. * plot * wait some time Hope this helps, Leo |
From: Robert L. <ro...@le...> - 2004-09-28 10:41:10
|
Tom Kornack wrote: > >>> 2. Is it possible to make two scales for the x and y axes? Like celsius >>> on one side and fahrenheit on the other? >> >> >> I haven't done it myself but I think you can use the set >> x2/y2...(range, label, >> tics, etc) to do this, i.e. gnuplot('set x2range [-10:10]') > > > import Gnuplot > g = Gnuplot.Gnuplot() > g('set x2range [-10:10]') > g('show x2range') > g.plot([[0,1.1], [1,5.8], [2,3.3], [3,4.2]]) > > Am I doing the right thing? I appreciate your help. A quick search of the Gnuplot mailing list (http://groups.google.com/groups?group=comp.graphics.apps.gnuplot) turned up that you also need to call 'set x2tics', i.e. g('set x2tics'). Note that this sets up x2 as an independent axis, if you do want to do the Celsius/Fahrenheit style related axis 'thing' you may have to use a function to specify the x2 range. Search the above list for more info - I found : http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=9inmhv%24clg%241%40brogar.bmsc.washington.edu&rnum=8&prev=/groups%3Fq%3Dx2range%26hl%3Den%26lr%3D%26ie%3DUTF-8%26group%3Dcomp.graphics.apps.gnuplot%26selm%3D9inmhv%2524clg%25241%2540brogar.bmsc.washington.edu%26rnum%3D8 which is a little old and may be out of date. HTH Robert |
From: Tom K. <to...@ko...> - 2004-09-27 19:52:34
|
Robert: Thank you so much. > Add 'errorbars' to the 'with' keyword, e.g.: > > gnuplot.plot(Gnuplot.Data(theData, with="errorbars")) This works beautifully. I'm having trouble with the x2/y2 stuff: >> 2. Is it possible to make two scales for the x and y axes? Like >> celsius >> on one side and fahrenheit on the other? > > I haven't done it myself but I think you can use the set > x2/y2...(range, label, > tics, etc) to do this, i.e. gnuplot('set x2range [-10:10]') import Gnuplot g = Gnuplot.Gnuplot() g('set x2range [-10:10]') g('show x2range') g.plot([[0,1.1], [1,5.8], [2,3.3], [3,4.2]]) Am I doing the right thing? I appreciate your help. Tom |
From: Robert L. <ro...@le...> - 2004-09-26 22:05:21
|
Tom Kornack wrote: > I have two plotting needs: > > 1. Does anyone know if there is a way to make error bars in this gnuplot > module? Add 'errorbars' to the 'with' keyword, e.g.: gnuplot.plot(Gnuplot.Data(theData, with="errorbars")) The data must include the necessary information to plot the errorbars, see the gnuplot help on errorbars for more info. > 2. Is it possible to make two scales for the x and y axes? Like celsius > on one side and fahrenheit on the other? I haven't done it myself but I think you can use the set x2/y2...(range, label, tics, etc) to do this, i.e. gnuplot('set x2range [-10:10]') HTH Robert |
From: Fernando P. <Fer...@co...> - 2004-09-26 21:50:55
|
Tom Kornack wrote: > Hello: > > I have two plotting needs: > > 1. Does anyone know if there is a way to make error bars in this > gnuplot module? Sure, just call gp('set data style errorbars') (assuming gp is your gnuplot instance) and then plot your data as an Nx3 array, where the first column is X, the 2nd is Y and the third is dY. Hth, f |
From: Tom K. <to...@ko...> - 2004-09-26 21:42:21
|
Hello: I have two plotting needs: 1. Does anyone know if there is a way to make error bars in this gnuplot module? 2. Is it possible to make two scales for the x and y axes? Like celsius on one side and fahrenheit on the other? Thanks very much. best, Tom http://kornack.com Fundamental Symmetries Lab, Princeton University 609-716-7259 (h), 609-933-2186 (m), 609-258-0702 (w), 609-258-1625 (f) Thomas Kornack, 157 North Post Road, Princeton Junction, NJ 08550-5009 |
From: Angelo S. <se...@ss...> - 2004-09-05 08:58:32
|
Hi, suppose I have a variable "data" created inside a python script. I would like to execute in the same Python script the following gnuplot line plot "data | my_program " w line where my_program is an utility to manipulate data. Is that possible? thanks a. -- ======================================================== Angelo Secchi PGP Key ID:EA280337 ======================================================== Current Position: Graduate Fellow Scuola Superiore S.Anna Piazza Martiri della Liberta' 33, Pisa, 56127 Italy ph.: +39 050 883365 email: se...@ss... www.sssup.it/~secchi/ ======================================================== |
From: Jim K. <jek...@kl...> - 2004-08-25 16:01:45
|
Seth Lesky wrote: > > I apologize in advance if this has been brought up somewhere before, > > Gnuplot on Windows exits immediately when the python script exits. Is > there a nice way of preventing this without a call to time.sleep()? > > Regards, > SL In the past, a call to g.gnuplot.gnuplot.close() in some circumstances would cause the popen() to wait until closed. Give that a try and see if it helps. Jim |