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
 All Forums
 Origin Forum
 Origin Forum
 Moving Axes to Cross (0,0 intersect)

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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.


The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000