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
 Removing legend frame and displaying lines
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Katti

Norway
13 Posts

Posted - 10/18/2018 :  11:11:25 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Is there a script command to remove the legend frame?

Also, I'm trying to edit the legend text, but I lose the line representations. I'm using legend.text$, is there an option for showing the corresponding plot lines?

Example:
legend.text$= %(1Y,@CL)
%(3Y,@CL)
%(5Y,@CL);

which displays the comments for plot lines 1, 3, and 5, but not a representation of the lines themselves. Is there a way to display them?

Katti

Norway
13 Posts

Posted - 10/18/2018 :  11:27:34 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I'm also trying to fit the graph page to its layers, is there a command for that?
Go to Top of Page

nick_n

Finland
125 Posts

Posted - 10/18/2018 :  3:23:45 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

>>Is there a script command to remove the legend frame?
LT script: legend.background =0;
BR,

Nikolay
Go to Top of Page

Katti

Norway
13 Posts

Posted - 10/19/2018 :  03:16:10 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by nick_n


LT script: legend.background =0;



Thanks, that works for the legend :-)

Anyone have an idea about how to include the plot lines in the legend, as mentioned above?
Go to Top of Page

yuki_wu

896 Posts

Posted - 10/19/2018 :  05:17:53 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Katti,

1# You should write text like:
legend.text$= \l(1) %(1Y ,@C)

You could take a look at these pages to know more about legend and text label substitution notation:
https://www.originlab.com/doc/LabTalk/ref/Legend-Substitution-Notation
https://www.originlab.com/doc/LabTalk/ref/Text-Label-Options

2# Use pfit2l X-Function to fit page to layers:
https://www.originlab.com/doc/X-Function/ref/pfit2l

Regards,
Yuki

OriginLab
Go to Top of Page

Katti

Norway
13 Posts

Posted - 10/23/2018 :  04:54:40 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by yuki_wu

Hi Katti,

1# You should write text like:
legend.text$= \l(1) %(1Y ,@C)




Thanks. My mistake was mistaking the "l" for a "1"
Glad that's cleared up
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