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 for Programming
 LabTalk Forum
 Get X column from graph

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
L007 Posted - 05/26/2009 : 4:49:41 PM
Origin Ver. and Service Release (Select Help-->About Origin): 7.5 SR4
Operating System: XP

Hi, maybe this is an easy question.

In a labtalk script, one can use xof(%A) to find the X of dataset %A. This works fine when one wants to find the X value of %A in a script IF the plot is created using Originīs standards (i.e. plot Y1 against X1, Y2 against X2, etc.).
However, in many cases it is not possible, since if for example one wants to plot Y2 against Y1 (using the Plot Setup window, for example). In this case the graph and dataset wonīt match (still it is not advantageous to change the column definitions, because you still have (X1,Y1) and (X2,Y2) plots).
For this particular case, xof(%A), where %A is (Y1,Y2), will return X1 and not Y1. How to proceed in this case?
1   L A T E S T    R E P L I E S    (Newest First)
greg Posted - 06/10/2009 : 3:23:45 PM
With the plot active, XOF function will get the X used by the specified Y, so
%A = xof(%(N,@D));
will set the %A variable to the X dataset used by the Nth dataplot.
e.g.
%A = xof(%(2,@D));
gets the x dataset used by the second dataplot in the active layer of the active graph window.

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