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 for Programming
 LabTalk Forum
 change plot type for all layers in 9x9 panels

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
thitchen Posted - 04/16/2012 : 06:48:50 AM
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
6   L A T E S T    R E P L I E S    (Newest First)
Penn Posted - 05/21/2012 : 11:17:28 PM
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
thitchen Posted - 05/21/2012 : 8:51:22 PM
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

thitchen Posted - 05/09/2012 : 4:26:55 PM
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

Penn Posted - 04/24/2012 : 01:38:35 AM
Hi,

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

Penn
thitchen Posted - 04/23/2012 : 2:54:59 PM
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

Penn Posted - 04/17/2012 : 06:02:16 AM
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

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