The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Area Plot: Positve vs. Negative
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

LionAM

Germany
11 Posts

Posted - 08/22/2011 :  06:00:06 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. 8.0 and Service Release 6
Operating System: Windows XP

Hello!

Is it possible in Origin to draw an area plot where the areas between two curves are filled with different colors depending on wether curve 1 is below curve 2 or vice versa, and if yes, how?

I would like to visualize the integral of a function with positive and negative contributions.

Thank you in advance.

Alex

Hideo Fujii

USA
1582 Posts

Posted - 08/23/2011 :  1:54:39 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Alex,

Similar to this graph style, there is no straightforward way to construct such shaded plot. In your case, you need to divide sub regions where the curve is either upper or lower than the other curve. See the attached sample:

Here, there are three regions, and first I found crossing points of two curves (say, by interpolation). Divide whole data to separate worksheets for subareas. Add crossing points at each subareas. Make the first "Fill Area" plot. Open Plot Setup dialog, and at the bottom panel of the dialog, choose "Layer1" branch, and add other two fill area plots from the rest of the subareas.



Hope this is helpful.

--Hideo Fujii
OriginLab
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000