|
From: Ethan M. <merritt@u.washington.edu> - 2009-03-13 16:26:18
|
On Friday 13 March 2009 02:01:48 Mojca Miklavec wrote: > One more tiny question from a dumb user. Let's assume that the data > has a title row, like this: > > # first column is quarter, second and third are data for specific year > # zero is just a placeholder > # this is header > 0 2000 2001 > # this is data > 1 50 55 > 2 15 30 > 3 20 40 > 4 30 53 > > I can now say > plot for[n=2:3] "data.dat" using 1:n title columnhead > which triggers the first row in data to be handled as header. What if > I want that header line to be simply ignored? > The command > unset key > plot for[n=2:3] "data.dat" using 1:n > alone will treat the first row as part of data. > > I didn't try it, but I guess that > unset key autotitle columnhead > doesn't work as such :) :) :) You still haven't explained what you would like the result to be. Do you not want a key at all? unset key plot .... Do you want a key, but have this particular column omitted from the key? set key autotitle columnheader plot foo using 2 notitle, '' using 3 notitle > Maybe > set key autotitle columnhead > plot for[n=2:3] "data.dat" using 1:n notitle > ? But I still hope that there's a some better option. Better in what way? If that is what you want, how else would you specify it? Or maybe the whole issue of plot titles is not relevant... Are you asking how to skip the first line of a data file? plot '< tail +2 file.dat' .... Or maybe: plot 'file.dat' every ::2 using ... -- Ethan A Merritt |