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

Home » Public Forums » archive » How to set the multiple xaxis 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
How to set the multiple xaxis labels [message #71139] Tue, 01 June 2010 13:40
duxiyu@gmail.com is currently offline  duxiyu@gmail.com
Messages: 88
Registered: March 2007
Member
I want to get the multiple xaxis labels like the example:
http://www.google.com/url?sa=D&q=http://sprg.ssl.berkele y.edu/fast/sumplotProg/sumplotsLink/orbit_links/2008/46118/2 008_01_24/fa_k0_ees_46118_is.gif&usg=AFQjCNHDRLJ6U4uXgPM PDTmgRshyAN1wOw

I have checked the old post named "Multiple xaxis labels ".
Someone suggested a way by using the system variable !xtickformat.
It indeed works, but it seems that the space between the label lines
is too far.

For example:
myDates = TIMEGEN(12, UNITS='Months', START=JULDAY(1,1,2000))
sales = [180,190,230,200,220,220,190,100,200,210,220,140]

date_label = LABEL_DATE(DATE_FORMAT = ['%D', '%M', '%Y'])
PLOT, myDates, sales, XTICKUNITS=['days', 'days', 'days'], $
XTICKFORMAT=['LABEL_DATE', 'LABEL_DATE', 'LABEL_DATE'], POSITION
= [0.2, 0.3, 0.9, 0.9]

By using the keyword xticklayout=1, the label can be displayed without
the axis.
But the space between them is too far.
How can I decrease it?

Best regards,
Du
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: help IDL with some equations implementation and optimized coding
Next Topic: FOR loop ends one above where it's supposed to

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

Current Time: Wed Oct 08 15:37:28 PDT 2025

Total time taken to generate the page: 0.00510 seconds