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
 Getting the same axis scales in different 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
Craters Posted - 11/01/2004 : 3:05:29 PM
Origin Version (Select Help-->About Origin): 7 SR4
Operating System: Windows XP Pro

I won't bore everybody with what I've been trying in order to get this done -- I'll just ask. I have, fortuitously, nine X-Y datasets that I'd like to plot in the 9-panel format. In doing so, I'd like to have the same scaling for both the X and Y axes: log10 for both, with the same minimum and maximum values for all nine panels. In starting to tackle this, I tried linking the axes between Layers 1 (parent) and Layer 2 (daughter). That seemed to work to the extent that the minimum and maximum values were applied, but the logarithmic scaling wasn't. I'm obviously missing something, but I can't figure out what it is. If there's a way to format the axes of all of the layers as being log10 without having to go to each layer and set the format separately for each one, I'd really appreciate it if one of you sharp folks would let me know. Part of my problem in not finding how to do this in the manual might well be that I'm not conversant in Origin's terminology yet; please pardon my rookiness and ignorance...

Thanks a million --

Mark
6   L A T E S T    R E P L I E S    (Newest First)
rlewis Posted - 11/01/2004 : 5:30:41 PM
Here is an OriginC approach which may solve Mark's problem. This function will apply the scale properties of the active lyer to all layers on the graphpage.

void ApplyActiveLayerScaleToAll()
{
Tree ActiveLayerScale;
GraphPage gP=Project.Pages(-1);
GraphLayer gL=gP.Layers(-1);
if(gL)
{
ActiveLayerScale=gL.GetFormat(FPB_SCALE);
int ActivePage=gL.GetIndex();
foreach (gL in gP.Layers)
{
if(gL.GetIndex()!=ActivePage)
{
gL.ApplyFormat(ActiveLayerScale,true);
}
}
}
}


All one has to do is to to set the scale properties in one layer, make that the active layer and call the function. IIt seems to work reasonably well in 7.5-SR4
Craters Posted - 11/01/2004 : 4:57:51 PM
Woohoo! Thanks, Easwar. I'm gonna upgrade as soon as I can get permission from the Powers That Be. That sounds EXACTLY like the sort of thing I was looking for...

Mark

Mike Buess Posted - 11/01/2004 : 4:06:33 PM
Hi Mark,

If you want a programming solution this will set all axes to log10...

loop (i,1,9) {
layer$(i).x.type=2;
layer$(i).y.type=2;
};

Mike Buess
Origin WebRing Member
easwar Posted - 11/01/2004 : 4:05:41 PM
Hi Mark,

Just for your information, and for others who may read this post:

In ver 7.5, there is a Themes feature where properties of objects such as axes can be copied and then applied to similar objects elsewhere. So in 7.5 one could just customize one layer by changing axis types etc, and then copy the layer properties as a theme and then paste the theme to all other layers. This saves time in that one does not have to repeatedly bring up dialog boxes for editing each object in each layer etc.

Themes can be saved to disk as well, and then applied to objects any time. The template feature works the same way in 7.5 as it did before - one can still make all customization on one's graph (manually, or by applying themes) and then save that graph as a template for repeated use.

Easwar
OriginLab


Craters Posted - 11/01/2004 : 3:59:13 PM
Okay -- thanks again, Mike. I saw Easwar's post and was hoping that it wasn't the complete, total, ultimate answer, but it looks like it was. Time to start hacking at those axes, I guess.

Yahoo.

Mark
Mike Buess Posted - 11/01/2004 : 3:49:01 PM
Hi Mark,

The bad news is that you must indeed format the axes in each layer separately. The good news is that you only need to do that once. After you've set up your 9-panel graph like you want just save it as a template to use again. See Easwar's reply to a similar question...

http://www.originlab.com/forum/topic.asp?TOPIC_ID=3466

Mike Buess
Origin WebRing Member

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