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 #79741 is a reply to message #60349] Mon, 26 March 2012 11:42 Go to previous messageGo to previous message
anil is currently offline  anil
Messages: 34
Registered: August 2009
Member
On Mar 26, 6:19 pm, David Fanning <n...@idlcoyote.com> wrote:
> 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.")

the xticks command does not allow me to have 100 ticks in an axis. but
i need to have a tick mark at each data point/date. Then i need to
add the dates as labels. but the problem is that i can not arrange the
tickmarks. any solution to this?
[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: Thu Oct 09 20:00:33 PDT 2025

Total time taken to generate the page: 0.39864 seconds