I am having trouble getting my x labels to be oriented sideways on my barplot. It seems to be ignoring my option for xtext_orientation. I am running IDL version 8.0.1:
Here is my code:
restore,'rainfall.sav'
device, decomposed=0,retain=2
window, /free, xsize=900, ysize=900
metar_list=['ata','bbd','bkr','blu','brg','cco','ccy','cfx','cmn','cna','cnh','cpk','crn','czc','drn','dvs','ffm','fhl','gks','hbg',$
'hbk','hcp','hld','hys','klm','knv','lcd','lgt','log','lsn','lso','mck','mhl','mta','ndn','nvc','ocr','omm','ons','ovl',$
'pan','pfd','pld','ppb','prv','ptv','rod','ser','sms','smt','sns','spd','std','sth','str','svc','tbt','tpk','wcc','wdc','wls']
time=['00','06','12','18','00','06','12','18','00','06','12','18','00','06','12','18','00','06','12','18',$
'00','06','12','18','00']
nticks=n_elements(time)
ptitle='NOAA/PSD/HMT site: '+metar_list[0]+' : Hourly Rainfall'
x=indgen(144)+1
b1=barplot(x,pp[0,*],$
xstyle=3,$
ystyle=3,$
yrange=[-10,500],$
fill_color='blue',$
xmajor=nticks,$
xminor=0,$
xtickname=time,$
xtickfont_size=9,$
xtext_color='green',$
ytext_orientation=45,$
xtitle='Time UTC',$
ytitle='Precip. (mm)',$
title=ptitle)
end
|