Very restrictive, a pain in the arse to set up and assumes all of the data
changes colour at the same Y value, which may only be true in the simplified
case quoted as an example.
You can get around the problem of lines joining adjacent sections by having
each section in a separate plot. So you get your dataset, feed it into a
loop. In that loop you take points and put them into new arrays. Every time
the "changeover" condition is met, you start a new array. The last point of
one array is duplicated as the first point of the next. You then end up
with, say, an array of individual segments that you can plot, and
programmatically set all the even numbered segments to one colour and the
odd numbered segments to another. Okay there may be a couple of hundred
segm
ents rather than two, but this is no big deal and should be pretty
simple to code.
markwysong wrote in message
news:506500000005000000DD1D0000-984882144000@quiq.com...
> The only way that I see to do this is to take 2 XY graphs and put the
> bottom of the top graph to the top of the bottom graph. Make the top
> graph one color, and only show positive numbers; make the bottom graph
> negative numbers, and have the graph a different color. Then wire the
> data to both graphs. It should look continuous like you want.
>
> Mark