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
 Substitute all graph legend in project
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

elquin

Republic of Korea
7 Posts

Posted - 11/22/2017 :  6:39:39 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 8.1 SR1
Operating System: Windows 7 64bit

I have many graphs which legends are listed below;

\l(1) EXP
\l(2) Code Ver.a
\l(3) Code Ver.b

I want to change the above as;
EXP -> Data
Code Ver.a -> Code Ver.bb

How to change 'EXP' or 'Code Ver.a' to other text like in all graphs in active page or project?

yuki_wu

896 Posts

Posted - 11/23/2017 :  02:51:58 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

This piece of script may help.
str$ = "\l(1) Data%(CR)\l(2) Code Ver.bb"; // reconstruct the legend 
//loop over all graph windows in this project
doc -e p 
{ 
	if(page.isEmbedded != 1)
		legend.text$ = str$; // redraw the legend
}


Regards,
Yuki
OriginLab

Edited by - yuki_wu on 11/23/2017 02:52:54 AM
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