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
 Contour Profile using labTalk Programming
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Mahmoud_Soc

Switzerland
2 Posts

Posted - 01/07/2022 :  1:55:44 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 2020b (Academic)
Operating System: Win 10

Dear all,

I am quite new to Origin programming. For the need of our current project, I would like to create a contour profile plot (from XYZ data) and programmatically add cutlines to it.

The current data are x and y coordinates, with their corresponding z-value, corresponding to heat in real-life:
x-cord y-cord Heat value
21.641 22.933 307.64938
21.641 23.579 307.64938
21.641 24.225 307.64938
21.641 24.871 307.64938
21.641 25.517 307.64938
21.641 26.163 307.64938
21.641 26.809 307.64938
21.641 27.455 307.64938
21.641 28.101 307.64938
21.641 28.747 307.64938
21.641 29.393 307.64938
21.641 30.039 307.64938
21.641 30.685 307.64938
21.641 31.331 307.64938
.. .. ..
The picture at the end of the post is the result I would like to get but with labTalk


We would like to extract (automatically) heat profiles from surface plots. Usually I use the contour profile, and it works fine.
Now I need to extract many profiles, making the task by hand relatively impractical.

I followed the tutorial for LabTalk programming, and searched into the documentation but the plot ID of the contour profiles seems to not exist (https://www.originlab.com/doc/en/LabTalk/ref/Plot-Type-IDs).

I am now wondering if this type of plot is at all accessible via the labtalk interface :/.

Sorry for the bother if this question has already been answered ><

If you have to do it once, do it.
If you have to do it more, ask your PC to do it



Edited by - Mahmoud_Soc on 01/07/2022 2:00:58 PM

YimingChen

992 Posts

Posted - 01/12/2022 :  11:09:14 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Try the script below on the worksheet with xyz data.

worksheet -s 3 0 3 0; // select the third column
worksheet -p 243 profile_TriContour; // Make contour plot
imageprofile layout:=0 protect:=0 default:=1; // add image profile


James
Go to Top of Page

Mahmoud_Soc

Switzerland
2 Posts

Posted - 01/20/2022 :  11:05:01 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Yes, it starts the profile dialog thank you :).
However, how do I add/modify lines from there?
Specifically, I have to extract many vertical line from such plots, and I want them to always be the same, that is to control the scale and positions.

P.S: sorry for the delay in replying, I thought I'd recieve a notification mail.
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