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
 Naming graphs
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

JonasKlim

Lithuania
36 Posts

Posted - 01/26/2018 :  04:45:12 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): Student 2018 64 bit SR1, b9.5.1.195
Operating System: win 10
Hello,

I use the script below to create graphs in batch mode the script creates long name and short name using the same string. This is not convenient since length of the short name is limited. How to modify the scrip to use different strings for long and shot graph name? The short name can be "default" or user created.

doc -e LW {;
R0 = Round(Median(Col(10)),0);
grname$= page.longname$+" "+wks.name$;
plotxy iy:=(1,3) plot:=200 color:=1 ogl:=[grname$]1!;
layer.plot = 1;
set %C -d 0;
String label$=R0= $(R0) Ohm;
label -s -n MyText %(label$);
};

Best regards,

Jonas

yuki_wu

896 Posts

Posted - 01/29/2018 :  9:45:40 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Jonas,

You can create the graph at first and then rename the long name of the graph window. For example:


grname$= page.longname$+" "+wks.name$;
plotxy iy:=(1,3) plot:=200 color:=1 ogl:=[grname$]1!;
page.label$ = grname$;


Hope it helps.

Regards,
Yuki
OriginLab
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