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
 Layer.Axis Question.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Bob

USA
14 Posts

Posted - 04/09/2001 :  01:43:24 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi:
I have a couple of questions regarding the layer.axis object. I am using Origin 6.0 Professional. I have a graph with numeric values for the y-axis and date values for the x-axis. I wish to change the first and last axis scale values. When I type:
 layer.x.from="3/1/2001 12:00"

The graph starts at "--"
Is there a way to change this?
If I manually set the graph start to 3/1/2001 and type in the script window
 layer.x.from=

I see:
 LAYER.X.FROM=2451969

What is the formula Origin uses to come up with this number?
Thanks very much for the help.
--Bob

Edited by - bob on 04/09/2001 01:49:50

cpyang

USA
1406 Posts

Posted - 04/09/2001 :  12:40:58 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Dates are stored as Julian days internally, so that is what you need to use. LabTalk has the data function, so you can do

layer.x.from=date(3/1/2001 12:00)

Go to Top of Page

Bob

USA
14 Posts

Posted - 04/09/2001 :  1:08:57 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Cool, thanks for the help.
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