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
 hide datasets in legend
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

gkeating

Posts

Posted - 06/12/2007 :  5:13:44 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): originpro 7.5 sr6
Operating System: XP

I have a plot with several curves in a single layer. In the Plot Setup dialog, I have unchecked the "Show" box next to some of these curves in order to produce a simplified plot.

Is it possible to have the legend only show these "show" curves and not the hidden ones? At this point I'm getting tired of having to manually delete the hidden curves from the legend. I don't see an option in the Plot Details --> Legend tab for doing this sort of filter.

Deanna

China
Posts

Posted - 06/12/2007 :  10:36:42 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you for your suggestion. I am sorry to say that it is not possible to do it in Origin 7.5. We will consider implementing your suggestion in our future products.

Deanna
OriginLab Technical Services
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 06/13/2007 :  06:41:08 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You can edit the legend yourself by assigning the following script to the Custom Routine button as explained here. Click the button each time you hide or show a curve.

%Z=""; nn=0;
doc -e DY {
nn++;
get %C -s ii;
if( ii ) {
if( %Z!="" ) {
%Z=%Z
\l($(nn)) %%($(nn));
};
else %Z=\l($(nn)) %%($(nn));
};
};
legend.text$=%Z;

Mike Buess
Origin WebRing Member
Go to Top of Page

gkeating

Posts

Posted - 06/13/2007 :  1:58:16 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks, Deanna and Mike.
I'll give the script a try!
-Gordon
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