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
 Graphic data acquisition
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

66de250

China
26 Posts

Posted - 06/06/2024 :  06:54:17 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
How do you get information about any point (such as the values of the horizontal and vertical coordinates) from a Graph? Please give me a piece of LabTalk code, thank you!

66de250

China
26 Posts

Posted - 06/06/2024 :  07:37:54 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The data source of the graph is a worksheet, the egg I need points in the worksheet does not have a corresponding Y value, and the graph displays a style similar to the line chart, so that I can get the points I need
Go to Top of Page

YimingChen

1640 Posts

Posted - 06/06/2024 :  08:54:05 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You could use the range notation in LT to obtain the x,y values of a line/scatter plot:

range -wx rx = [Graph1]1!1;
range -wy ry = [Graph1]1!1;
rx[2]=;  // second point x value
ry[2]=;  // second point y value

https://www.originlab.com/doc/en/LabTalk/guide/Range-Notation#Option_Switches_-w.2C_-wx.2C_-wy_and_-wzOption_Switche

James
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