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
 Apply the axis scale to all layers

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
zfkum Posted - 03/18/1999 : 7:26:00 PM
How can I apply the axis scale from one layer to all of the other layers in a graph window?
1   L A T E S T    R E P L I E S    (Newest First)
Lorraine Posted - 03/19/1999 : 1:30:00 PM
To do this you first need to make sure that the layer containing the axis scale you want applied to other layers is the parent layer (lowest layer number). If this layer containing the axis scale is of a higher layer number and because of the fact that you want its scale to be applied to all the other layers in the graph window you will want to ensure that this layer is layer number 1. If it is not simply open the script window (menu option: Window:Script Window) and use the following Labtalk command:

page.reorder(Layer2,Layer1);

This command assumes that the layer whose axis scale you want applied to the others is presently layer 2 and points it to be assigned as layer 1, so the exact syntax to be used would be:

page.reorder(2,1) [ENTER]

You can then link the child layers to the parent layer. To link a child layer (i.e., layer 2) to the parent layer (layer 1) double-click on the layer 2 icon (the 2 in the gray box in the upper left hand corner of the graph window) then go to "Layer Properties". Select 'Layer 1' for the 'Link to' setting. Then click the 'Link Axes' button to go to the Link Axes Scale dialog box. You would select 'Straight (1 to 1)' for the X and/or Y axis link. Click OK. Your axis scale(s) are now linked with a one to one relationship. Don't forget that whenever you rescale your axes that you must do it within the parent layer such that all the child layers will update accordingly.


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