|
From: sfeam <sf...@us...> - 2014-12-11 00:20:09
|
On Wednesday, 10 December 2014 04:00:06 PM Philipp K. Janert wrote: > > Consider the following commands: > > set linetype 1 lw 1 lc rgb "red" > set linetype 2 lw 2 lc rgb "black" > set linetype cycle 2 > > I expected alternating thin red and thick black > curves. But that's not what happens... > > A command like: > plot sin(x), cos(x), airy(x), 1/(x**2+1), -exp(-x**2) > > plots the first and second curve as expected, > but then falls back to predefined line types, > until line type 8. > > Only beginning with linetype 9 and 10 do I see > the alternating red/black lines. (This can be > clearly seen when running the "test" command.) > > I first thought this was a bug, but then I saw > a line in the documentation: > > If the line properties of a higher numbered > linetype are explicitly defined, this takes > precedence over the recycled low-number > linetype properties. > > So, I need to precede everything with > > unset for [i=1:10] linetype i > > to remove the default line types. > > That strikes me as rather odd behavior. I would > have expected that "set linetype cycle" takes > precedence. That would have the effect of disabling all linetypes higher than the cycle count. |