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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Getting the same axis scales in different layers
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Craters

USA
21 Posts

Posted - 11/01/2004 :  3:05:29 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Mike Buess

USA
3037 Posts

Posted - 11/01/2004 :  3:49:01 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

Craters

USA
21 Posts

Posted - 11/01/2004 :  3:59:13 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

easwar

USA
1965 Posts

Posted - 11/01/2004 :  4:05:41 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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


Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 11/01/2004 :  4:06:33 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

Craters

USA
21 Posts

Posted - 11/01/2004 :  4:57:51 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

Go to Top of Page

rlewis

Canada
253 Posts

Posted - 11/01/2004 :  5:30:41 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
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 © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000