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 for Programming
 LabTalk Forum
 Plotting error bars in Labtalk
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

cheyenne

Italy
Posts

Posted - 07/02/2005 :  06:29:51 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.5
Operating System: XP

Dear friends of the forum,

I have been spending the last 2 hours trying to plot with LabTalk
the X and Y error bars of a 4-column worksheet, type X Xerr Y Yerr, but I have been failing all the time.
Can please any of you help me getting the right piece of code for this?...I bet there is a trivial solution fot this, but I keep on failing.

Thanks again.

Mike Buess

USA
3037 Posts

Posted - 07/02/2005 :  11:26:28 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
This assumes A(X), B(xEr), C(Y), D(yEr)...

%W=%H; // get wks name
win -t P; // open graph window
lay -i %W_C; // add y col
lay -i %W_B; // add x error bars
lay -i %W_D; // add y error bars

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 07/02/2005 11:28:02 AM
Go to Top of Page

cheyenne

Italy
Posts

Posted - 07/04/2005 :  09:53:15 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you very much Mike, once again. It works.
Go to Top of Page

greg

USA
1380 Posts

Posted - 07/06/2005 :  4:04:04 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You can also use LabTalk to switch a plotted dataset to any kind of error bar you like:

// Start with a Data1 worksheet like A(X),B(Y),C(Y),D(Y),E(Y),F(Y)
wo -s 0 0 0 0; // Select entire worksheet
wo -p 201 scatter; // Plot as scatter
set data1_c -om data1_b; // Change C into a negative Y error
set data1_d -op data1_b; // Change D into a positive Y error
set data1_e -oxm data1_b; // Change E into a negative X error
set data1_f -oxp data1_b; // Change F into a positive X error


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