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

Home » Public Forums » archive » Re: Labeling the x-axis with a non standard time string
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: Labeling the x-axis with a non standard time string [message #58874] Tue, 26 February 2008 13:09
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Mark writes:

> On Feb 27, 2:22 am, David Fanning <n...@dfanning.com> wrote:
>> I think you are probably going to have to roll your own
>> here, but I should think it should be easy if you just
>> call Label_Date from within your own routine.
>
> Label_date is the spawn of the devil!

The evangelical Christian movement is taking over
the entire country! I hadn't realized they had moved
into software. :-(

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Labeling the x-axis with a non standard time string [message #58875 is a reply to message #58874] Tue, 26 February 2008 12:51 Go to previous message
Mark[1] is currently offline  Mark[1]
Messages: 66
Registered: February 2008
Member
On Feb 27, 2:22 am, David Fanning <n...@dfanning.com> wrote:
> I think you are probably going to have to roll your own
> here, but I should think it should be easy if you just
> call Label_Date from within your own routine.

Label_date is the spawn of the devil!
Re: Labeling the x-axis with a non standard time string [message #58905 is a reply to message #58875] Tue, 26 February 2008 05:22 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
clivecook59@gmail.com writes:

> So i want to be able to label the x-axis with non-standard time array.
> The x-axis values would look something like ''021 12:20:00" for
> example, where the first two numbers represent the number of days
> since the experiment began. I need to be able to dynamically change
> the plot so the x-axis labels will need to be updated on the fly. For
> normal time data i use the label_date function however i can only
> display the day as day of the month.
>
> Any ideas?

I think you are probably going to have to roll your own
here, but I should think it should be easy if you just
call Label_Date from within your own routine.

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: Labeling the x-axis with a non standard time string [message #58907 is a reply to message #58905] Tue, 26 February 2008 05:11 Go to previous message
lasse is currently offline  lasse
Messages: 48
Registered: February 2007
Member
On 25 Feb, 18:41, clivecoo...@gmail.com wrote:
> Hi,
>
> So i want to be able to label the x-axis with non-standard time array.
> The x-axis values would look something like ''021 12:20:00" for
> example, where the first two numbers represent the number of days
> since the experiment began. I need to be able to dynamically change
> the plot so the x-axis labels will need to be updated on the fly. For
> normal time data i use the label_date function however i can only
> display the day as day of the month.
>
> Any ideas?
>
> Many thanks,
>
> Clive

Hi,

you can write your own labelling function which calculates a string
(i.e. the label) from input data such as axis (x, y or z), index of
tickmark and x value. You then set

xtickformat='my_func'

See documentation here: http://idlastro.gsfc.nasa.gov/idl_html_help/Graphics_Keyword s.html#wp332347
or IDL documentation for (X|Y|Z)TICKFORMAT

Cheers
Lasse Clausen
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Code for selecting a study from a dicomdir
Next Topic: Re: Regarding the Fit_Ellipse Program

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

Current Time: Thu Oct 09 06:40:49 PDT 2025

Total time taken to generate the page: 1.04313 seconds