|
From: Mojca M. <moj...@gm...> - 2009-03-13 09:01:51
|
On Fri, Mar 13, 2009 at 06:23, Ethan A Merritt wrote:
>
> I have so modified the parsing code, which now accepts:
> plot ... title columnheader
> plot ... title columnheader(N)
> The option is now handled by the normal title parsing code, so there is
> no strangeness with the order of title options on the command line.
>
> The original form of the command, which was never documented but was
> used in several of the demos, is now deprecated. However it still works
> if you ./configure --enable-backwards-compatibility
> Thus
> plot ... using 1 title 1
> should be re-written using any of the following:
> plot ... using 1 title col
> plot ... using 1 title columnhead(1)
> set key autotitle columnhead
> plot ... using 1
>
> The change leaves one chunk of dead code in df_open() that looks like it
> used to handle some exceptional case, but can now never be reached.
> This may mean that the exceptional case is now broken, but I haven't
> been able to work out what it was :-/ Oh well.
Hello,
First - thanks a lot for clearing it up.
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 :) :) :)
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.
Thanks a lot,
Mojca
|