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

Home » Public Forums » archive » Time axis labelling (1 major label every 7 days with 6 minor ticks)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: time axis labelling [message #79746 is a reply to message #60349] Mon, 26 March 2012 08:19 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
anil writes:

> I have a contour plot (y axis is ocean depth, x axis is time and
> temperature of the water column is contoured) in which i have 123
> irregular time(data) points. I want to read in column data (which is
> no problem) from a file :
> 09 09 2002
> 09 17 2002
> ... ... ......
> ... ... ......
> 12 23 2005 etc... I want to read these columns as month, day ,year
> seperately and then generate time labels for the x axis of my plot
> such as : 09/09/2002 .
>
> There is no regular spacing in between the dates, which is what i
> could not figure out.
> I want to have tickmarks on each date(data point), so my plot will be
> easy to follow.

I don't know if you have noticed, but that's a fairly
long string you want to put on there for the date.
If you have more than 5 dates on your plot, it's going
to be hard to follow no matter what you do. :-)

I'd recommend you suppress the tick annotations on your
contour plot entirely, and then put the labels on with cgText,
in a rotated fashion, so you have a chance of fitting them
onto the plot in a way that is readable. You can see an
example of how this is done with the labels in the
discrete color bar program cgDCBar.

You could even put small tick marks in the right
locations with cgPlotS.

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Regrid / Interpolation Question
Next Topic: An optimisation question

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

Current Time: Sun Oct 12 00:07:52 PDT 2025

Total time taken to generate the page: 1.83934 seconds