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
 Origin Forum
 Legend: Show only active plots?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

FloTor

29 Posts

Posted - 03/14/2014 :  04:41:26 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 8.6G
Operating System: Win7

Hi,

I was wondering how to set Origin in a way that the autmatically updated legend of a plot shows only the currently active plots. To avoid misunderstanding: I am talking about plots which are actually shown in the plot.
When I have several plots in a layer and some of them are switched of (not displayed), and I update the legend, it shows the complete set of plots, even the switched off ones, which is quite annoying when I play around with them and switch them on and off quickly.

thank you and best regards,
Florian

JacquelineHe

287 Posts

Posted - 03/14/2014 :  05:16:31 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Florian,

I am afraid currently Origin does not support to hide the legends of the hidden dataplots automatically.

And we will consider adding this feature to our future version.

We have submitted a JIRA ORG-10823 for it.

Thanks for your suggestion.


Jacqueline
OriginLab

Edited by - JacquelineHe on 03/16/2014 10:49:49 PM
Go to Top of Page

greg

USA
1378 Posts

Posted - 03/14/2014 :  11:21:37 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
For a one-layer plot with a simple legend you can try this:

Right-click on the Legend and choose Programming Control.
Paste the following into the large text box:
// BEGIN COPY
string str$;
count = 1;
doc -e DY {
get %C -s shown;
if(shown)
{
if(str.GetLength()>0)
{
str$ = %(str$)%(CRLF)\L($(count)) %($(count));
}
else
{
str$ = \L($(count)) %($(count));
}
}
count++;
}
legend.text$=str$;
// END COPY
Set the "Script, Run After:" drop-down to "Redrawn".
Click OK.

Your Legend should only show the dataplots that are actually being displayed. Note that if you use the context menu to select and "Hide Data Plot" or "Hide Others" you will need to use Window : Refresh. You will not need to do the Refresh when you choose "Show All Data Plots" or use the Plot Details dialog.

Edited by - greg on 03/14/2014 11:26:09 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