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
 Fill area between curves if...
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Duff

Argentina
42 Posts

Posted - 12/18/2012 :  8:08:07 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 9.0 64bits
Operating System: win 7 64bits

There is a way to fill the area between two curves, but only the upper part of the curve? For example fill only the area if is higher than a constant value and don't fill the area bellow this constant value.
Sorry my bad english
Thanks

Echo_Chu

China
Posts

Posted - 12/19/2012 :  04:11:26 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi, Pablo

Do you mean you want to plot a graph as below?



There are several steps to create such plot.
1. Create a fill area graph with your two curves first.
a. Put your data of the two curves in the first three columns and set as XYY. You may need to interpolate them first to have same X
b. Select Plot:Area: Fill Area

2. Find out the minimum values of the two curves
a. Highlight col(b) and col(c), select Statistics: Descriptive Statistics: Statistics on Rows
b. In the opened dialog, clear all other options and only keep Minimum in the Quantiles branch
--> A new column Col(Min) with minimum values will be created

3. Find out the maximum value between Col(Min) and the Constant(i.e. 2e11)
a. Add a new column, Col(D)
b. Right click on it and select Set Column Values from the context menu.
c. Enter script as below in the Set Column Values dialog
"(col(min)>2e11)?col(min):2e11"

4. Add col(D) to graph to cover the part under the constant.
a. Drag and drop col(D) in the fill area graph
b. Double click on the plot to open Plot Details dialog
c. In the Line Tab, Select Fill Area Under Curve. Set Line Color as White
d. In the Pattern tab, set Fill Color as White

5. Drag and drop col(b) and col(c) to graph to show the lines


Echo
Go to Top of Page

Duff

Argentina
42 Posts

Posted - 12/19/2012 :  08:18:10 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Works great!
Thanks you!
Go to Top of Page

alex_dantas

Brazil
4 Posts

Posted - 08/26/2019 :  4:26:11 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi, I would like to know if is possible to fill the area between the max and min values of multiple curves (10 per example), as in this example made for Matlab
(https://www.mathworks.com/matlabcentral/answers/416872-filling-an-area-between-max-and-minimum-lines-on-a-plot).

Thanks for your attention
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