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
 Forum for Origin C
 Accessing x-values of dataset or XYRange

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
muh Posted - 07/28/2016 : 1:13:54 PM
Should be very simple. But I can not find this in documentation. The origin programming is often extremely frustrating.

So - is it possible to access x-data of a range or dataset in Labtalk, Origin C or whatever? How?

There is GetData in Range object, which seem to be able to do this, but the call is very complicated - one has to specify lots of parameters, including mother's maiden name (well, almost).
1   L A T E S T    R E P L I E S    (Newest First)
easwar Posted - 08/05/2016 : 10:35:51 AM
Hi,

Do you mean you have a graph active and want to find the x-data associated with one of the data plots in the graph layer?

If yes, for Origin C, see GetDataRange under DataPlot class:
http://www.originlab.com/doc/OriginC/ref/DataPlot-GetDataRange

For Labtalk, an example:

// Declare range variable for x data of the 2nd plot in the active layer
range -wx rwx=2;

which is documented here:
http://www.originlab.com/doc/LabTalk/guide/Range-Notation#Graph_DataRange.2C_Graph_Data

Easwar
OriginLab


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