X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 25 Jun 2013 02:51 PM by  anon
xtext_orientation option for barplot
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
25 Jun 2013 02:51 PM
    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

    Berangere Casson



    New Member


    Posts:61
    New Member


    --
    01 Jul 2013 09:12 AM
    The following small test code seems to work fine with IDL 8.2.3: the text below the X axis is oriented at 90° (relatively to the horizontal axis) 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) x=indgen(10)+5 b1=barplot(x,indgen(10)+10,$ xstyle=3,$ style=3,$ yrange=[-10,500],$ fill_color='blue',$ xmajor=nticks,$ xminor=0,$ xtickname=time,$ xtickfont_size=9,$ xtext_color='green',$ ytext_orientation=45,$ xtext_orientation=90)
    You are not authorized to post a reply.