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

Home » Public Forums » archive » Re: Tick labels and dates
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: Tick labels and dates [message #41822 is a reply to message #41820] Wed, 24 November 2004 14:23 Go to previous messageGo to previous message
Michael Wallace is currently offline  Michael Wallace
Messages: 409
Registered: December 2003
Senior Member
> I'm not a fan of LABEL_DATE, mainly because it uses a common block, so
> there is endless scope for confusing interactions between apparently
> unrelated graphs. I think that it is much simpler and safer to use the
> C() calendar-format codes directly in your axis's TICKFORMAT string. You
> will need to convert your time data to Julian Days, but how hard is that?

I was trying to figure out how in the world label_date was working.
Common blocks. Ugh. I am no fan of common blocks either and avoid them
like the plague.

Now that I've read through the C() it will do what I need it to do. My
problem was that it wasn't intuitively obvious for me to look up "C()".
Converting seconds since 1970 to a Julian day isn't hard. 1 Jan 1970
00:00:00 is 2440587.5 JD. Just convert the seconds to days and add it
to 2440587.5.

Now, there's the plotting part of my code. The previous examples showed
this label_date stuff, but since I'm not using that, how do I go about
creating the correct labels? If I use JD values for that axis, is there
some magic option where I can give it the format code? Or will I need
to go the ugly route and create the axis with JD, get the labels,
convert them and reset the label values?

-Mike
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Image Segmentation
Next Topic: Image Segmentation

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

Current Time: Sat Oct 11 12:56:37 PDT 2025

Total time taken to generate the page: 1.36071 seconds