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
 draw line with a date 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

Sell

Germany
20 Posts

Posted - 09/15/2010 :  04:16:58 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver.8.1 and Service Release 3:
Operating System: Windows XP

It seems a simple question. How can I draw a vertical line with labtalk when the x-axis is with date data? Example: Draw the vertical line at July 31, 2002.
draw -l -v 31.07.2002 does not work. I was not really surprised but I assume there is a simple way to do it.

Sam Fang

293 Posts

Posted - 09/15/2010 :  06:26:16 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You can use the following script.

--------------------------------------------
draw -l -v date(7/31/2002)

--------------------------------------------

Sam
OriginLab Technical Services

Edited by - Sam Fang on 09/15/2010 06:27:47 AM
Go to Top of Page

Sell

Germany
20 Posts

Posted - 09/16/2010 :  03:49:39 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks for the reply. It works but after a small adaptation. For any reason my Origin has the "DD/MM/YYYY" format as default - not as described in the help file. So, it is advisable to use always a format specifier when dealing with dates:
date(7/31/2002,1)
date(31/7/2002,2)
or even date(31.07.2002,"dd/MM/yyyy")
but not date(7/31/2002) this does not fit to my default handling.

Thanks again
Hans
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