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
 question about hide specified plot
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

sunaeseo

5 Posts

Posted - 09/27/2016 :  01:27:25 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I have graph1 with 5 layers. All those layers includes multiple 20 plots.And I want to hide only even plots (2,4,6,8--20). If I go to plot details , I do remove click on those plots, it's possible. but I want to do automatically. If anyone knows the way, please teach me.

yuki_wu

896 Posts

Posted - 09/27/2016 :  03:00:09 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

I think you can try the scripts below:

for(ii=1; ii<=page.nLayers; ii++)
{
	page.active = ii;
	layer -c;

	for(jj=2; jj <= count; jj+=2)
	{
		layer -hp 1 $(jj);
	}
}


The details about layer -hp can be found here:
http://www.originlab.com/doc/LabTalk/ref/Layer-cmd#-hp.3B_hide_or_show_data_plot.28s.29

Hope it helps.

Regards,
Yuki
OriginLab

Edited by - yuki_wu on 09/27/2016 03:18:20 AM
Go to Top of Page

sunaeseo

5 Posts

Posted - 09/27/2016 :  03:49:30 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
thank you .it is working well.
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