Re: label x axis [message #56099] |
Wed, 03 October 2007 08:16 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
queiny writes:
> Then I have to calculate the location of the ticks since each month is
> not evenly distributed.
The XTICKFORMAT function simply formats the tick annotation.
Where you put the annotations is completely up to you.
> I had thought there might be some existing
> pros for this kind of plot.
You give us too much credit for clairvoyance. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
|
Re: label x axis [message #56103 is a reply to message #56101] |
Wed, 03 October 2007 07:33  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
queiny writes:
> I have an hourly dataset for one year. The time is recorded as
> 2004.xxxxx, where 'xxxxx' goes from 0 - 1, represent the portion of
> that hour in the year. For example, 0.5 will be July 2, 00:00am (since
> it is a leap year). But when this time is used as x axis, it is not
> very clear when it is: 2004.2, 2004.4, etc. Is there a way to label
> the x axis with Jan. 2004, April 2004, etc. And if I only plot the
> data for one month, it can lable, July 1st, 11th, 21th, etc.
>
> Do I have to calculate them using 'xtickv', 'xtickn'? Or there are
> some existing pro.
Why don't you write one and call it with XTICKFORMAT:
http://www.dfanning.com/tips/exponents.html
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|