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 force X and Y axis with same scale?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

tlab

Japan
34 Posts

Posted - 03/12/2003 :  01:39:06 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I am a new comer ;-)
Could anybody tell me how to force x and y axis with same scale? For example, x from 0 to 100, y from 0 to 50, I hope the length of x axis could be automatically set as double as the length of y axis. when I change y from 0-50 to 0-150, it can redraw the plot and show that the length of y axis is 1.5 longer than x axis.
Are there any setting to do so in Origin?
Thanks.

Laurie

USA
404 Posts

Posted - 03/12/2003 :  10:20:29 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You can do this from script. Open the Script Window and run the following script:

layer.width=(LAYER.X.TO-LAYER.X.FROM)/(LAYER.Y.TO-LAYER.Y.FROM)*layer.height;



OriginLab Technical Support
Go to Top of Page

tlab

Japan
34 Posts

Posted - 03/12/2003 :  11:03:55 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
It works. Thanks a lot.
Gobmany.
Go to Top of Page

tlab

Japan
34 Posts

Posted - 03/13/2003 :  9:50:09 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
It seems it only works when layer.unit is not % of page.
Go to Top of Page

ssavarmand

USA
Posts

Posted - 10/30/2014 :  09:19:02 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Laurie,
I am new to Origin. I wanted to try this. I tried to run the script and I put it in the Command Window (Alt + 3). The data does not show up. I think I made a mistake. How can I undo what I did.
Thanks.

quote:
Originally posted by Laurie

You can do this from script. Open the Script Window and run the following script:

layer.width=(LAYER.X.TO-LAYER.X.FROM)/(LAYER.Y.TO-LAYER.Y.FROM)*layer.height;



OriginLab Technical Support

Go to Top of Page

snowli

USA
1379 Posts

Posted - 10/30/2014 :  11:58:43 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello,

Could you let me know which Origin version you are using?

Since Origin 9.1, we supports link axis length to scale from GUI.
http://www.originlab.com/doc/Quick-Help/axis-isometric

So you can double click you graph to go to Plot Details dialog. Select Layer node on left panel. And go to Size/Speed tab.
There is a checkbox Link Axis Length to Scale (Isometic).


Thanks, Snow

Edited by - snowli on 10/30/2014 2:59:26 PM
Go to Top of Page

ssavarmand

USA
Posts

Posted - 11/08/2014 :  4:38:50 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks. Got it.
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