How to set the multiple xaxis labels [message #71139] |
Tue, 01 June 2010 13:40 |
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
|
|
|