Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
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$); } ///