Re: Labeling the x-axis with a non standard time string [message #58874] |
Tue, 26 February 2008 13:09 |
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 #58905 is a reply to message #58875] |
Tue, 26 February 2008 05:22  |
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  |
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
|
|
|