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
 All Forums
 Origin Forum
 Origin Forum
 Fill area between curves if...

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Duff Posted - 12/18/2012 : 8:08:07 PM
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
3   L A T E S T    R E P L I E S    (Newest First)
alex_dantas Posted - 08/26/2019 : 4:26:11 PM
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
Duff Posted - 12/19/2012 : 08:18:10 AM
Works great!
Thanks you!
Echo_Chu Posted - 12/19/2012 : 04:11:26 AM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000