You can subscribe to this list here.
2003 
_{Jan}

_{Feb}

_{Mar}

_{Apr}

_{May}

_{Jun}

_{Jul}

_{Aug}

_{Sep}

_{Oct}
(2) 
_{Nov}
(2) 
_{Dec}


2004 
_{Jan}
(3) 
_{Feb}
(1) 
_{Mar}
(2) 
_{Apr}
(22) 
_{May}
(52) 
_{Jun}
(43) 
_{Jul}
(36) 
_{Aug}
(59) 
_{Sep}
(37) 
_{Oct}
(55) 
_{Nov}
(39) 
_{Dec}
(36) 
2005 
_{Jan}
(64) 
_{Feb}
(40) 
_{Mar}
(62) 
_{Apr}
(58) 
_{May}
(256) 
_{Jun}
(77) 
_{Jul}
(80) 
_{Aug}
(39) 
_{Sep}
(56) 
_{Oct}
(36) 
_{Nov}
(113) 
_{Dec}
(68) 
2006 
_{Jan}
(43) 
_{Feb}
(64) 
_{Mar}
(69) 
_{Apr}
(60) 
_{May}
(71) 
_{Jun}
(53) 
_{Jul}
(63) 
_{Aug}
(63) 
_{Sep}
(76) 
_{Oct}
(85) 
_{Nov}
(82) 
_{Dec}
(73) 
2007 
_{Jan}
(75) 
_{Feb}
(82) 
_{Mar}
(84) 
_{Apr}
(104) 
_{May}
(67) 
_{Jun}
(101) 
_{Jul}
(107) 
_{Aug}
(138) 
_{Sep}
(128) 
_{Oct}
(106) 
_{Nov}
(112) 
_{Dec}
(112) 
2008 
_{Jan}
(94) 
_{Feb}
(87) 
_{Mar}
(146) 
_{Apr}
(169) 
_{May}
(75) 
_{Jun}
(26) 
_{Jul}
(26) 
_{Aug}
(7) 
_{Sep}
(18) 
_{Oct}
(53) 
_{Nov}
(42) 
_{Dec}
(19) 
2009 
_{Jan}
(43) 
_{Feb}
(39) 
_{Mar}
(18) 
_{Apr}
(45) 
_{May}
(66) 
_{Jun}
(87) 
_{Jul}
(56) 
_{Aug}
(41) 
_{Sep}
(56) 
_{Oct}
(139) 
_{Nov}
(98) 
_{Dec}
(88) 
2010 
_{Jan}
(81) 
_{Feb}
(79) 
_{Mar}
(83) 
_{Apr}
(97) 
_{May}
(124) 
_{Jun}
(84) 
_{Jul}
(53) 
_{Aug}
(85) 
_{Sep}
(89) 
_{Oct}
(50) 
_{Nov}
(98) 
_{Dec}
(78) 
2011 
_{Jan}
(97) 
_{Feb}
(74) 
_{Mar}
(68) 
_{Apr}
(54) 
_{May}
(63) 
_{Jun}
(59) 
_{Jul}
(65) 
_{Aug}
(58) 
_{Sep}
(37) 
_{Oct}
(40) 
_{Nov}
(59) 
_{Dec}
(35) 
2012 
_{Jan}
(16) 
_{Feb}
(56) 
_{Mar}
(63) 
_{Apr}
(25) 
_{May}
(48) 
_{Jun}
(58) 
_{Jul}
(20) 
_{Aug}
(13) 
_{Sep}
(43) 
_{Oct}
(35) 
_{Nov}
(20) 
_{Dec}
(17) 
2013 
_{Jan}
(22) 
_{Feb}
(11) 
_{Mar}
(51) 
_{Apr}
(34) 
_{May}
(57) 
_{Jun}
(27) 
_{Jul}
(70) 
_{Aug}
(30) 
_{Sep}
(38) 
_{Oct}
(53) 
_{Nov}
(40) 
_{Dec}
(25) 
2014 
_{Jan}
(26) 
_{Feb}
(35) 
_{Mar}
(60) 
_{Apr}
(12) 
_{May}
(17) 
_{Jun}
(15) 
_{Jul}
(9) 
_{Aug}
(18) 
_{Sep}
(46) 
_{Oct}
(18) 
_{Nov}
(19) 
_{Dec}
(15) 
2015 
_{Jan}
(17) 
_{Feb}
(28) 
_{Mar}
(21) 
_{Apr}
(49) 
_{May}

_{Jun}

_{Jul}

_{Aug}

_{Sep}

_{Oct}

_{Nov}

_{Dec}

S  M  T  W  T  F  S 



1
(1) 
2

3
(7) 
4
(3) 
5
(2) 
6
(3) 
7
(9) 
8
(6) 
9
(4) 
10
(1) 
11
(1) 
12
(2) 
13
(3) 
14
(5) 
15
(3) 
16
(5) 
17
(1) 
18
(2) 
19
(5) 
20
(3) 
21
(1) 
22

23
(3) 
24
(2) 
25
(5) 
26
(2) 
27
(1) 
28
(2) 
29
(1) 
30
(1) 



From: Stijn Souffriau <stijn.souffriau@ug...>  20100605 19:12:48

That seems usable but pretty complicated. Maybe I should get to work on a more flexible script that, for any functional arithmetic expression, extracts the required columns from a datafile with named columns and generates the corresponding gnuplot command. Thanks! On Saturday 05 June 2010 08:28:55 pm Thomas wrote: > it's a little bit tricky, but it can be done using gnuplot only. the > following > script assumes a data file like in your 1st email: > > x, y, f, g, u, s, t > 1, 2, 3, 4, 5, 0, 3 > ... > > so here is the script: > > reset > > set datafile separator ',' > > # replace with your data file name: > dfn="ts.dat" > > # first some dummy plots the set the variables > set output > set terminal push > set terminal dumb > undefine x y f g u s t > > # determine the number of columns in the data file using the > # 1st line with numeric values, which is line 2  we need > # numeric values because 'valid()' doesn't work with strings. > # (and plot something to avoid errors or warnings) > ncol=0 > plot for [i=1:100] dfn \ > using (valid(i)?ncol=ncol+1:0,i):(i) every ::1::1 > > # now find the position of each column name and store > # its position in the variable 'column name', assuming > # that the column names are in the 1st line of the data file > # (and plot something to avoid errors or warnings) > plot for [i=1:ncol] dfn \ > using (strstrt(stringcolumn(i)." ","x"." ")==1?x=i:0,i):(i) \ > every ::0::0 > plot for [i=1:ncol] dfn \ > using (strstrt(stringcolumn(i)." ","y"." ")==1?y=i:0,i):(i) \ > every ::0::0 > plot for [i=1:ncol] dfn \ > using (strstrt(stringcolumn(i)." ","f"." ")==1?f=i:0,i):(i) \ > every ::0::0 > plot for [i=1:ncol] dfn \ > using (strstrt(stringcolumn(i)." ","g"." ")==1?g=i:0,i):(i) \ > every ::0::0 > plot for [i=1:ncol] dfn \ > using (strstrt(stringcolumn(i)." ","u"." ")==1?u=i:0,i):(i) \ > every ::0::0 > plot for [i=1:ncol] dfn \ > using (strstrt(stringcolumn(i)." ","s"." ")==1?s=i:0,i):(i) \ > every ::0::0 > plot for [i=1:ncol] dfn \ > using (strstrt(stringcolumn(i)." ","t"." ")==1?t=i:0,i):(i) \ > every ::0::0 > show variables > > # and now do the plot > set terminal pop > > splot dfn \ > using (column(x)):(column(y)):(column(f)+column(g)*column(u)) \ > every ::1 > > Stijn Souffriau3 wrote: > > On Thursday 03 June 2010 08:37:18 pm Thomas wrote: > >> the proper gnuplot command is: > >> > >> splot "yourdatafilename" using 1:2:($3+$4*$5) > >> > >> and plotting if s==0: > >> > >> splot "yourdatafilename" using 1:2:($6==0 ? $3+$4*$5 : 1/0) > > > > That's nice but I would like software that could work with named columns. > > This > > way I could state: > > ($time : $revenue  $cost) instead of having to know the actual column > > numbers. > > > >  > > ThinkGeek and WIRED's GeekDad team up for the Ultimate > > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > > lucky parental unit. See the prize list and enter to win: > > http://p.sf.net/sfu/thinkgeekpromo > > _______________________________________________ > > gnuplotinfo mailing list > > gnuplotinfo@... > > https://lists.sourceforge.net/lists/listinfo/gnuplotinfo > 
From: Thomas Sefzick <t.sefzick@fz...>  20100605 18:29:03

it's a little bit tricky, but it can be done using gnuplot only. the following script assumes a data file like in your 1st email: x, y, f, g, u, s, t 1, 2, 3, 4, 5, 0, 3 ... so here is the script: reset set datafile separator ',' # replace with your data file name: dfn="ts.dat" # first some dummy plots the set the variables set output set terminal push set terminal dumb undefine x y f g u s t # determine the number of columns in the data file using the # 1st line with numeric values, which is line 2  we need # numeric values because 'valid()' doesn't work with strings. # (and plot something to avoid errors or warnings) ncol=0 plot for [i=1:100] dfn \ using (valid(i)?ncol=ncol+1:0,i):(i) every ::1::1 # now find the position of each column name and store # its position in the variable 'column name', assuming # that the column names are in the 1st line of the data file # (and plot something to avoid errors or warnings) plot for [i=1:ncol] dfn \ using (strstrt(stringcolumn(i)." ","x"." ")==1?x=i:0,i):(i) \ every ::0::0 plot for [i=1:ncol] dfn \ using (strstrt(stringcolumn(i)." ","y"." ")==1?y=i:0,i):(i) \ every ::0::0 plot for [i=1:ncol] dfn \ using (strstrt(stringcolumn(i)." ","f"." ")==1?f=i:0,i):(i) \ every ::0::0 plot for [i=1:ncol] dfn \ using (strstrt(stringcolumn(i)." ","g"." ")==1?g=i:0,i):(i) \ every ::0::0 plot for [i=1:ncol] dfn \ using (strstrt(stringcolumn(i)." ","u"." ")==1?u=i:0,i):(i) \ every ::0::0 plot for [i=1:ncol] dfn \ using (strstrt(stringcolumn(i)." ","s"." ")==1?s=i:0,i):(i) \ every ::0::0 plot for [i=1:ncol] dfn \ using (strstrt(stringcolumn(i)." ","t"." ")==1?t=i:0,i):(i) \ every ::0::0 show variables # and now do the plot set terminal pop splot dfn \ using (column(x)):(column(y)):(column(f)+column(g)*column(u)) \ every ::1 Stijn Souffriau3 wrote: > > On Thursday 03 June 2010 08:37:18 pm Thomas wrote: >> the proper gnuplot command is: >> >> splot "yourdatafilename" using 1:2:($3+$4*$5) >> >> and plotting if s==0: >> >> splot "yourdatafilename" using 1:2:($6==0 ? $3+$4*$5 : 1/0) >> > > That's nice but I would like software that could work with named columns. > This > way I could state: > ($time : $revenue  $cost) instead of having to know the actual column > numbers. > >  > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeekpromo > _______________________________________________ > gnuplotinfo mailing list > gnuplotinfo@... > https://lists.sourceforge.net/lists/listinfo/gnuplotinfo > >  View this message in context: http://old.nabble.com/functiondataextractiontp28767807p28791071.html Sent from the Gnuplot  User mailing list archive at Nabble.com. 