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 for Programming
 LabTalk Forum
 Changing Axis Scale (Date Format)

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
Mulvenna Posted - 10/23/2013 : 09:34:04 AM
Origin Ver. 8.6
Operating System: Windows 7

Hi Again,

I just keep coming up with problems,

I have an analysis workbook that each time my script is run, the workbook is opened and a new line of data is added to it.
The worksheet is linked to a graph that is plotted against date.
When the new data is added, the graph updates automatically no problem and plots correctly but the axis scale does not update.

What Command do I use to change the range of the scale when it is in date format? I have tried:

layer.x.to=01.01.2013
and
layer.x.to=01012013

but they are just read as numbers and therefore change the format of my axis, Origin then has a mental breakdown and can't process the date format tick labels so Im just left with a big gray square.

Any help at all would be great.

Thanks in advance.
2   L A T E S T    R E P L I E S    (Newest First)
Mulvenna Posted - 10/28/2013 : 06:36:16 AM
Hi,

Thanks Shirley, that worked perfectly.

Really appreciate the help.

Mulvenna
Shirley_GZ Posted - 10/28/2013 : 05:55:53 AM
Hi,

The Layer.Axis.to object is numeric. You can't set it to date value directly.

Please try below script:

range ll = [graph1]1!;
ll.x.to= date(4/1/2013);

Thanks,
Shirley

Originlab Technical Service Team

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