Page 1 of 1

Fill Between Curves

Posted: Wed Jul 05, 2006 12:25 am
by John Sigurdson
Dave,

Dplot continues to be most useful.

I have an X/Y graph with two lines that cross at a mid-X value (Line 1 values exceed Line 2 values at X < mid-X and Line 2 values exceed Line 1 values at X > mid-X)

It would be most useful to fill one color or fill between Line 1 and 2 where Line 1 > Line 2 and a second color or fill where Line 1 < Line 2. Is there a straightforward way to do this?

Thanks in advance,
John

Posted: Wed Jul 05, 2006 1:18 am
by DPlotAdmin
John,
Not directly, but this or some variation of this will work: Make two copies of your line 2 (Edit>Copy>Data values, Edit>Paste). Use Edit>Truncate to clip the two copies such that the 1st copy ends at the intersection and the 2nd copy begins at that point. Then fill between line 1 and copy 1, and also between line 1 and copy 2. Hide the two copies with View>Hide Curves.

Posted: Wed Jul 05, 2006 1:21 am
by John Sigurdson
Dave,

That will work. Thanks for the quick reply.

John