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

Home » Public Forums » archive » Re: label x axis
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
Re: label x axis [message #56099] Wed, 03 October 2007 08:16
David Fanning is currently offline  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 #56101 is a reply to message #56099] Wed, 03 October 2007 07:55 Go to previous message
queiny is currently offline  queiny
Messages: 15
Registered: November 2005
Junior Member
Thanks.

Then I have to calculate the location of the ticks since each month is
not evenly distributed. I had thought there might be some existing
pros for this kind of plot.


> Why don't you write one and call it with XTICKFORMAT:
>
> http://www.dfanning.com/tips/exponents.html
>
> Cheers,
>
Re: label x axis [message #56103 is a reply to message #56101] Wed, 03 October 2007 07:33 Go to previous message
David Fanning is currently offline  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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: edit a large dataset
Next Topic: Re: edit a large dataset

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

Current Time: Fri Oct 10 19:35:14 PDT 2025

Total time taken to generate the page: 1.94299 seconds