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
 How to rescale x or y axis in multiple 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

NaveedSaadi

China
33 Posts

Posted - 11/24/2018 :  10:37:51 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello,
This is Naveed. I am using OriginPro2018 and I have created 8 line graphs for rainfall stations and merge them to one window. Now, I want to rescale the X-axis of all the layers in new merged window. How to do this in simple way. I am doing it by clicking on x-axis of each layer in the merged window and rescale and so on. It is very time taking process.
Please let me know, How I can do it shortly. Keep in mind that My x-axis is years and ranging from 1961-2015 for all layers.
For layer 1, I have done it, you can see in the atached figure. Rest of the layers need to be rescaled.

Naveed Ahmed

malgoska

Poland
36 Posts

Posted - 11/25/2018 :  06:29:44 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello, try the following

doc -e LP
{    if(page.IsEmbedded==0&&exist(%H)!=11)
    {
layer.x.from=1961;
layer.x.to=2015;
    }
}


Best regards
Go to Top of Page

NaveedSaadi

China
33 Posts

Posted - 11/26/2018 :  12:20:11 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I did not know, how to do this.
please further guide me.

Naveed Ahmed
Go to Top of Page

malgoska

Poland
36 Posts

Posted - 11/26/2018 :  08:28:34 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You need to paste and execute (press enter) this code into command window. You can either open it from Window Menu or by pressing Alt+3.
Go to Top of Page

NaveedSaadi

China
33 Posts

Posted - 11/27/2018 :  11:05:13 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Many thanks for your guidance. But, unfortunately,I am unable to do this. Please check attached picture.

Naveed Ahmed
Go to Top of Page

YimingChen

1684 Posts

Posted - 11/28/2018 :  10:20:19 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Naveed,

After merge, you can select from menu Graph: Layer Management...In the dialog, activate Link tab, then select all the layers on the left except first one. On the right panel, set Link To to 1. Set X Axis Link to Straight(1 to 1). Click Apply. Click OK to close the dialog. Now the x scale of all layers will be changed according to first layer x scale. Thanks.

James
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