by philkime <Philip@[EMAIL PROTECTED]
>
Jun 27, 2008 at 08:08 PM
On Jun 25, 4:21=A0am, goog...@[EMAIL PROTECTED]
wrote:
> Hi, =A0what part of your plot got overwritten? I can only see that point
> 50 would get plotted twice with what Ethan suggested. Since all your
> data is <100 I don't understand the second condition you applied.
You're quite right on both counts, I hadn't paid attention to the
order of the conditional clauses in Ethan's code. I just opted for
plot 'foo' using 0:($0 < 50 ? $3 : NaN) lc rgb "red", \
'' using 0:($0 >=3D 50) ? $3 : NaN) lc rgb "green"
(reversing the test and therefore the consequents of the conditional)
for readability. The <=3D100 thing was not needed. It seems I need an
overlapping point in the middle due to the width of the histogram
bars. If the second clause it "$0 >=3D51", there is a gap between the
red and green lines (as there is in Ethan's code if I use "$0 < 50"
both times).