by philkime <Philip@[EMAIL PROTECTED]
>
Jun 24, 2008 at 02:27 PM
On Jun 24, 1:00=A0pm, merr...@[EMAIL PROTECTED]
wrote:
> There are many ways. =A0The simplest is something like
>
> plot 'foo' using 0:($0 < 50 ? $3 : NaN) lc rgb "red", \
> =A0 =A0 =A0 =A0 '' using 0:($0 < 50 ? NaN : $3) lc rgb "green"
Perfect, thanks. I just hadn't read that bit of the manual closely
enough. I ended up doing:
plot 'foo' using 0:($0 < 50 ? $3 : NaN) lc rgb "red", \
'' using 0:(($0 >=3D 51) && ($0 <=3D 100)) ? NaN : $3) lc rgb
"green"
otherwise the green line just overwrites the red one