comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: IDL 5.4 label_date function
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: IDL 5.4 label_date function [message #27792 is a reply to message #27791] Wed, 07 November 2001 14:37 Go to previous messageGo to previous message
Chad Bahrmann is currently offline  Chad Bahrmann
Messages: 7
Registered: September 2001
Junior Member
Thanks to all for the information....I guess I really did not fully
understand julday
Chad
"Chad Bahrmann" <cbahrmann@ou.edu> wrote in message
news:QscG7.6556$o4.12893@news.ou.edu...
> Has anyone encountered problems in using the label_date function in IDL
5.4?
> From the documentation for IDL 5.4. This plot gives you data from
> 11/01/2001 at 1200 through 11/02/2001 at 1200 when I would expect data
from
> 11/01/2001 at 0000 through 11/02/2001 at 0000. I have had success using
> this function in older versions of IDL but this one appears not to work
> properly? The actual code had revisions on
> ; MODIFICATION HISTORY:
> ; DMS, RSI. April, 1993. Written.
> ; DMS, RSI. March, 1997. Added Time format.
> ; DMS, RSI. Jan, 1999. Rounded least significant time unit
> ; CT, RSI. May 2000. Completely rewrote to use calendar format codes.
> ; Added Level argument for new date/time TICKUNITS.
> ; Added AM_PM and DAYS_OF_WEEK keywords, '%A' and '%W'
codes.
> ;-
>
> PRO test
>
> ; Create format strings for a two-level axis:
>
> dummy = LABEL_DATE(DATE_FORMAT=['%H%I!C%N/%D/%Y'])
>
> ;Generate the Date/Time data
> time = TIMEGEN(START=JULDAY(11,1,2001), FINAL=JULDAY(11,2,2001))
>
> ;Generate the Y-axis data
> data = RANDOMN(seed, N_ELEMENTS(time))
>
> ;Plot the data
> PLOT, time, data, XTICKUNITS = ['Time'], $
> XTICKFORMAT='LABEL_DATE', XSTYLE=1, XTICKS=6, YMARGIN=[6,2]
>
>
> end
>
>
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: <sigh> My color question
Next Topic: PlotS rasterization info update

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:23:04 PDT 2025

Total time taken to generate the page: 0.00481 seconds