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
 Origin Forum
 Panel plots' scaling

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
gardyloo Posted - 05/06/2004 : 9:02:30 PM
Hi, all,

I'm importing 9 data ASCII sets at a time, and plotting the resulting 2D time traces in a 9-panel template. Each of the data sets has the same time scale (X-axis), but they all have differing amplitudes (Y-axis). It seems that the default setting is to autoscale the axes, which is fine for the X-axis for me, but I'd like to have all of the Y-axes the same, automatically.

As it is, I'm going to each of the plots, figuring out which one has the highest amplitude (it's always the first one, which is nice, and is what I'd expect from the nature of how I have the data and experiment set up), autoscaling it, and then having to manually rescale each of the other 8 plots in the 9-panel layout.

Is there a way in which to rescale ALL of the plots at the same time, so that the Y-axis has the same scale on all of them? I've done some searches through the Forums and in Origin's online help, but can't seem to find an answer.

Thanks,
Curtis O.
3   L A T E S T    R E P L I E S    (Newest First)
Mike Posted - 05/07/2004 : 09:37:26 AM
Mike, I made one small tweak to your macro so that all y scales have a common increment and no. of minor ticks. Hope that was okay.

Mike
OriginLab

def RescaleAll
{
lay -o %1 {lay -a}; // rescale selected layer to show all data
yy1=layer%1.y.from; // lower limit in chosen layer
yy2=layer%1.y.to; //upper limit in chosen layer
yyinc=layer%1.y.inc; // scale increment of selected layer
yymT=layer%1.y.minorTicks; // no of minor ticks
// apply same limits to all layers
loop (i,1,page.nlayers)
{
layer$(i).y.from=yy1;
layer$(i).y.to=yy2;
layer$(i).y.inc=yyinc;
layer$(i).y.minorTicks=yymT;
};
};
Mike Buess Posted - 05/07/2004 : 12:37:35 AM
Hi Curtis,

You can rescale all layers with this macro...
def RescaleAll
{
lay -o %1 {lay -a}; // rescale selected layer to show all data
yy1=layer%1.y.from; // lower limit in chosen layer
yy2=layer%1.y.to; //upper limit in chosen layer
// apply same limits to all layers
loop (i,1,page.nlayers)
{
layer$(i).y.from=yy1;
layer$(i).y.to=yy2;
};
};
After you've defined the macro enter "RescaleAll layerNumber" in the script window to scale all layers like layer layerNumber. For example,

RescaleAll 4;

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 05/07/2004 12:41:34 AM
gardyloo Posted - 05/06/2004 : 9:05:23 PM
Whoops! Forgot to mention that I'm using Origin 7.0. Thanks again!
Curtis

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