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 for Programming
 LabTalk Forum
 Scale X axis
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

alkamid

Poland
27 Posts

Posted - 05/25/2010 :  10:10:33 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release: OriginPro 8 SR3
Operating System: Ubuntu 9.04

Hello,

I'd like my script to draw a few graphs but I don't know how to change the default scale margin. I don't want any margin to be visible (I mean the space between Y axis and the first point on my graph). I know I could use layer.axis.from/to but then I'd have to know the min/max values in my data and I'd rather avoid it.
Is there a method to set the margin i.e. it's always 0.1 or 0?

Sam Fang

293 Posts

Posted - 05/26/2010 :  03:14:25 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You can use the script:
layer.axis.rescaleMargin

to produce a margin in percent around data, then select Graph: Rescale to Show All from Origin menu to refresh the graph.

Sam
OriginLab Technical Services

Edited by - Sam Fang on 05/26/2010 03:15:40 AM
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