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

Home » Public Forums » archive » Date labeling in PLOT IDL8
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: Date labeling in PLOT IDL8 [message #76257 is a reply to message #76034] Mon, 23 May 2011 01:31 Go to previous messageGo to previous message
Klemen is currently offline  Klemen
Messages: 80
Registered: July 2009
Member
Hi, I had similar problems - I could not put the label in the middle
of the interval. I decided in the end to use LABEL_DATE function,
where I put some spaces in front of code for the month (%M). The
problem is, that IDL ignores all empty spaces if there is no other
charcter in front of it. So I made a compromise and put a point in the
beginning. If you look your graph long enough you will of course see
these points, but others will probably not notice it. :)

Cheers, Klemen

dat_form = LABEL_DATE(DATE_FORMAT='. %M %D') ;note
the point and spaces in front of %M

ka = PLOT([0], XRANGE = [xmin,xmax], YRANGE = [ymin,ymax], $
YTITLE='$\it$RP $\rm$[MW]', $ XTITLE='Date', $
SYM_SIZE = 0., FONT_SIZE= 8, FONT_NAME ='Arial', $
XTICKINTERVAL=1, XMINOR=3, XTICKLEN=0.03, YTICKLEN=0.03, $
XTICKUNITS='Day', XTICKFORMAT='LABEL_DATE', XTICKLAYOUT=0)
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Nasty compatibility issue in lists and hashes (and maybe more?)
Next Topic: backward compatibility

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

Current Time: Fri Oct 10 20:01:47 PDT 2025

Total time taken to generate the page: 0.80482 seconds