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
 All Forums
 Origin Forum
 Origin Forum
 Legend: Show only active plots?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
FloTor Posted - 03/14/2014 : 04:41:26 AM
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
2   L A T E S T    R E P L I E S    (Newest First)
greg Posted - 03/14/2014 : 11:21:37 AM
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.
JacquelineHe Posted - 03/14/2014 : 05:16:31 AM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000