Author |
Topic |
|
vadb
9 Posts |
Posted - 09/05/2013 : 11:59:10 AM
|
Hello,
When the size of the error for certain points in a scatter plot is small, the error bars for those points are smaller in height than the corresponding symbols. This makes those points look like their symbols are distorted. Is it possible to plot only those error bars that are are above a certain value? Thank you.
Vad |
Edited by - vadb on 09/05/2013 12:00:30 PM |
|
Hideo Fujii
USA
1582 Posts |
Posted - 09/05/2013 : 2:25:20 PM
|
Hi Vad,
Assuming that you have 3 columns - A(X), B(Y), and C(YErr). Then, you can: 1) Add a column to the worksheet, and designate also as YErr, i.e. D(YErr) 2) Run Set Column Values tool for this new column, and set the following formula (here 0.1 is the criterion):col(C)<0.1?0:col(C) 3) Highlight both B(Y) and D(YErr) using CTRL key, and select the desired Plot menu (or a graph icon).
Does it work?
--Hideo Fujii OriginLab |
|
|
vadb
9 Posts |
Posted - 09/05/2013 : 2:48:28 PM
|
Hi Hideo,
Thank you for the response. That worked!
I am just now learning Origin's scripting language. Would you mind going over the formula?
I presume col(C)<0.1?0 tests whether each value is less than 0.1 and if it is, sets it to zero. Why do you have the last " :col(C)" ?
Vad |
|
|
vadb
9 Posts |
Posted - 09/05/2013 : 2:54:01 PM
|
Oops, just realized the answer to my own question: ":col(C)" is the value in the new column in case the condition is false. |
|
|
|
Topic |
|
|
|