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
 Error bars smaller than symbol
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

vadb

9 Posts

Posted - 09/05/2013 :  11:59:10 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

vadb

9 Posts

Posted - 09/05/2013 :  2:48:28 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

vadb

9 Posts

Posted - 09/05/2013 :  2:54:01 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Oops, just realized the answer to my own question: ":col(C)" is the value in the new column in case the condition is false.
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