The Origin Forum
File Exchange
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
 change plot type for all layers in 9x9 panels
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

thitchen

40 Posts

Posted - 04/16/2012 :  06:48:50 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. 8 and Service Release 0(Select Help-->About Origin):
Operating System: Win7 Prof

How can I change plot type for all layers in 9x9 panels from scattering to line at the same time?

Thanks

Penn

China
638 Posts

Posted - 04/17/2012 :  06:02:16 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

You can use the layer -i# command to replot with line plot type. For example:

for(ii=1; ii<=page.nlayers; ii++)
{
	page.active = ii;  // activate the iith layer
	layer -i200 %C;  // replot as line, 200=line, 201=scatter
}


Penn
Go to Top of Page

thitchen

40 Posts

Posted - 04/23/2012 :  2:54:59 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you so much,
Do you know how to change that for different pages please?
quote:
Originally posted by Penn

Hi,

You can use the layer -i# command to replot with line plot type. For example:

for(ii=1; ii<=page.nlayers; ii++)
{
	page.active = ii;  // activate the iith layer
	layer -i200 %C;  // replot as line, 200=line, 201=scatter
}


Penn

Go to Top of Page

Penn

China
638 Posts

Posted - 04/24/2012 :  01:38:35 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

You can use the window -a to activate the page first, and then run the script.

Penn
Go to Top of Page

thitchen

40 Posts

Posted - 05/09/2012 :  4:26:55 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you so much Penn!
quote:
Originally posted by Penn

Hi,

You can use the window -a to activate the page first, and then run the script.

Penn

Go to Top of Page

thitchen

40 Posts

Posted - 05/21/2012 :  8:51:22 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by Penn

Hi,

Hi Penn,

That will change all the plotting to color of black.
What can I do if I want to keep the colors for each individual plot, please?


You can use the layer -i# command to replot with line plot type. For example:

for(ii=1; ii<=page.nlayers; ii++)
{
	page.active = ii;  // activate the iith layer
	layer -i200 %C;  // replot as line, 200=line, 201=scatter
}


Penn

Go to Top of Page

Penn

China
638 Posts

Posted - 05/21/2012 :  11:17:28 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

For your case, you can get the scatter color from the original plot first, and then set back this color after replot. For example:

for(ii=1; ii<=page.nlayers; ii++)
{
	page.active = ii;  // activate the iith layer
	get %C -cse mycolor;  // get original color
	layer -i200 %C;  // replot as line, 200=line, 201=scatter
	set %C -cl mycolor;  // set back the color
}


Penn
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 © 2008 Originlab Corporation Go To Top Of Page
Snitz Forums 2000