|
From: <pl...@pi...> - 2008-08-21 23:43:40
|
On Thu, 21 Aug 2008 15:45:39 +0200, Theo Hopman
<th...@ph...> wrote:
> Everything you ask for already exists in gnuplot 4.2. For example, `set
> grid mxtics` sets a grid at minor x tics. See `help grid` for details on
> how to set the linetype.
>
Indeed, many thanks. I had looked at that help entry but must have been
confused by the number of brackets and terse syntax.
In fact, looking at it, I am not sure whether it is accurate anyway. Take
the first term of the first line:
set grid {{no}{m}xtics}
{m} should indicate xtics AND/OR mxtics but {no} means xtics OR noxtics
since both would be a contradiction. So either the syntax definition is
ambiguous or it is wrong. {no} and {m} cannot have the same meaning.
It seems that being too concise in representing the multitude of possible
options has led to inaccuracy. It seems this should read:
set grid {{no}xtics} {{no}mxtics}
I also get an error when I try to define minor grid line style without
major line style.
set style line 11 lw 0.25 lc rgb "#C0C0C0"
set grid mxtics mytics , ls 11
This gets in invalid expression on the comma. Now unless I have had a
mental stack overflow condition trying to parse all those braces, that
should be correct usage.
Am I misreading this or is that also an error in the sytax definition?
TIA. , Peter.
BTW, I'm using recent CVS gnuplot.
|