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

Home » Public Forums » archive » PLOT axis labels
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
PLOT axis labels [message #53194] Fri, 30 March 2007 03:26
grafgeo is currently offline  grafgeo
Messages: 1
Registered: March 2007
Junior Member
Hi

I try to get a plot with only major xticks, but only every other
should be labelled (i.e. every year should have a tick (it is a dotted
vertical line), but only the lines of the even years should be
labelled). How can I do this?

;date_arr consists of [julian day, y-value]

date_label = LABEL_DATE(DATE_FORMAT = ['%Y'])
PLOT, date_arr[0,*], date_arr[1,*], xtickunit='YEARS',
xtickformat='Label_Date', $
xticks=n_elements(x_values)-1, xticklen=1, xminor=1, xgridstyle=1

Thanks a lot for your help
Cheers
Andy
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: We have file_lines for lines in IDL. What about file_rows?
Next Topic: Re: Children's Reading List

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

Current Time: Wed Oct 08 11:42:31 PDT 2025

Total time taken to generate the page: 0.00453 seconds