T O P I C R E V I E W |
mloving |
Posted - 06/30/2010 : 4:35:37 PM 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. |
3 L A T E S T R E P L I E S (Newest First) |
greg |
Posted - 07/01/2010 : 11:10:08 AM 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;
|
mloving |
Posted - 07/01/2010 : 10:50:55 AM 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! |
Leo_Li |
Posted - 07/01/2010 : 12:43:33 AM 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.
|