Fill Between Curves

Have a suggestion for improving DPlot or a question about existing features? Let us know

Moderator: DPlotAdmin

Post Reply
John Sigurdson
Posts: 8
Joined: Thu Mar 03, 2005 2:31 am
Location: San Diego CA

Fill Between Curves

Post 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
John Sigurdson
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post 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.
Visualize Your Data
support@dplot.com
John Sigurdson
Posts: 8
Joined: Thu Mar 03, 2005 2:31 am
Location: San Diego CA

Post by John Sigurdson »

Dave,

That will work. Thanks for the quick reply.

John
John Sigurdson
Post Reply