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 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