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
 Moving Axes to Cross (0,0 intersect)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

mloving

5 Posts

Posted - 06/30/2010 :  4:35:37 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 8.1 SRO v8
Operating System: windows xp

Hi,
Can somebody tell me how to automate putting graph axes in a cross which intersects at (0,0). It seems like the origin default option is to put the (0,0) point in a corner. I can manually move the axes but I would prefer to just enter a command into the labtalk.

Thanks.

Leo_Li

China
Posts

Posted - 07/01/2010 :  12:43:33 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Not sure how this could be done via labtalk.

But at least you can adjust axes cross to your favorite position, then save it as a plot template.

After that, whenver you create a new plot, it is based on your new template.

Go to Top of Page

mloving

5 Posts

Posted - 07/01/2010 :  10:50:55 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The problem with doing it that way is that when I zoom in on my graph the axis lines with shift away from 0,0 so that I end up readjusting them again - there has got to be something better!
Go to Top of Page

greg

USA
1378 Posts

Posted - 07/01/2010 :  11:10:08 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You can set axis position as default, as a percentage of scale or as an absolute value.
Leo's suggestion to drag the axis uses the % setting. What you want is the absolute setting.

Select Format : Axes : X Axis
On the 'Title & Format' tab, set 'Axis Position' to 'At Position =' and enter 0 as the 'Percent/Value'.
Change Selection to Left (if you use standard left y) and do the same.

The axes of this graph will always be from 0,0 regardless of what zoom-in you use - and will not show any scale if you zoom into one quadrant.

This can be done through script, but I have only tested in v8.1SR3:

layer.x.postype = 2; // Use absolute
layer.x.position = 0;
layer.y.postype = 2;
layer.y.position = 0;
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