|
From: Petr M. <mi...@ph...> - 2005-07-27 09:05:36
|
>> gnuplot> plot 'file' notitle with lines
>>
>> 1) Two gnuplot syntax rules collide at this point: On the one hand
>> gnuplot is greedy: If "with" is a string variable it is to be
>> ignored because it is the title for "title with". On the other
>> hand it is a key word and as such not to be interpreted as
>> variable name.
>
> Hmm. I wish you had brought that up a few months ago, when the
> syntax ... notitle "title"
> was added. This is indeed a problem. I am rather inclined to say
> we should back out the option altogether since it creates ambiguous
> syntax.
>
>> I'd prefer the second case, but how to cope here for "title"? I
>> *really* think we need a stricter syntax policy how to handle these
>> cases.
>
> I wonder how far away we are from being able to have that policy
> be simply "no ambigous syntax is permitted".
The problem is only when user defines a variable with name same as a
keyword. This is not allowed in normal programming languages.
> Several disambiguating keywords have been added already (e.g. "font",
> "offset", "at") for exactly this reason. Do you know of any other cases
> that are violators, like ... notitle "title"?
set label {<tag>} {"<label text>"}
set timestamp {"<format>"} ... {"<font>"}
set title {"<title-text>"}
set xlabel {"<label>"}
---
PM
|