X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 17 Oct 2014 04:14 AM by  anon
Plotting time dependent data
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
17 Oct 2014 04:14 AM
    Hello, I have problems with labeling x time axis using procedure PLOT. My time data are in 'seconds' format - number of seconds counted from 1/1/1979. On X axis I want to display time in format %H:%I but there are only 00:00 labels displayed. Could someone answer how to set the correct format of data?I trieddummy=LABEL_DATE(DATE_FORMAT=['%H:%I'])p=PLOT(data(0,*),data(1,*),'r', AXIS_STYLE=1, XTICKUNITS='Time', XTICKFORMAT= 'LABEL_DATE')Thank you

    Deleted User



    New Member


    Posts:7
    New Member


    --
    11 Nov 2014 05:57 AM
    Hi Ondrej, IDL manages time data using Julian dates. You should convert your time data to Julian before plotting it. Regarding the labels of your plot, IDL automatically places default labels. In your case it's putting "midnight" labels for different days in your time range. You can force IDL to put labels in different time places using XTICKVALUES parameter (in Julian dates, remember). Imanol
    You are not authorized to post a reply.