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
 Contour Profile using labTalk Programming

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
Mahmoud_Soc Posted - 01/07/2022 : 1:55:44 PM
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


2   L A T E S T    R E P L I E S    (Newest First)
Mahmoud_Soc Posted - 01/20/2022 : 11:05:01 AM
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.
YimingChen Posted - 01/12/2022 : 11:09:14 AM
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

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