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
 Graph Layers in a graph page
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

newuser_ca

70 Posts

Posted - 05/29/2012 :  2:00:27 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin 8.6 in Windows 7.

I have several graph layers in a graph page. I want to show the active layer only instead of all layers. I right-click and select "Show Active Laye Only". and it worked.

How can I set it in Origin C? I print the graphpage tree using the following code:
Tree tr;
tr = gp.GetFormat(FPB_ALL, FOB_ALL, true, true);
out_tree(tr);

but I didn't get any related information.

Another question is: can I change the graphlayer name to "plot1 plot2 plot3 ..." instead of "1 2 3..." in the upper-left corner of graph page? If yes, how can I do it in Origin C?

thanks.

Penn

China
644 Posts

Posted - 05/29/2012 :  10:29:25 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

You can refer to this example on showing the active layer only.

About the "1 2 3..." icons, they cannot be changed.

By the way, if your questions are about programming, please post them to programming forums in the future. Thanks.

Penn
Go to Top of Page

newuser_ca

70 Posts

Posted - 05/30/2012 :  09:49:40 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks a lot.

will do in the future. sorry for the incovenience.
Go to Top of Page

greg

USA
1378 Posts

Posted - 05/30/2012 :  10:36:36 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
While the icons will not change, you can name the layers.
The Name property of a Layer can be set with LabTalk, or you can use the SetName method for a layer in Origin C.
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