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
 Forum for Origin C
 Accessing x-values of dataset or XYRange
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

muh

France
14 Posts

Posted - 07/28/2016 :  1:13:54 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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).

easwar

USA
1964 Posts

Posted - 08/05/2016 :  10:35:51 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

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