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
 How to use drawing templates to draw graphics?

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
delete Posted - 04/28/2025 : 05:28:29 AM
Origin version is OriginPro 2024 (64-bit) SR1, and the operating system is Windows 10. I've written a LabTalk code. Its purpose is to iterate through all the matrices in the project file, then use the plotting template to perform batch plotting on the matrices. The name of the graph window should be copied as the long name of the matrix. The key question is how to use drawing templates to draw graphics?

doc -e M
{
window -a %H;
string longName$ = page.longname$;
win -t plot C:\Users\Nordoo\Desktop\intensity.optu;
win -r %(page.name$) %(longName$);
}
1   L A T E S T    R E P L I E S    (Newest First)
YimingChen Posted - 04/29/2025 : 3:25:13 PM
You can use the plotm xfunction. Try the script below where MyTemplate is your saved template. Please also refer to the: https://www.originlab.com/doc/zh/X-Function/ref/plotm
///
doc -e M
{
window -a %H;
string longName$ = page.longname$;
plotm im:=1!1 plot:=226 ogl:=<new template:=MyTemplate>;
win -r %(page.name$) %(longName$);
}
///

James

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