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

Home » Public Forums » archive » Re: plotting with respect to time
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: plotting with respect to time [message #35750] Wed, 09 July 2003 09:14
msgentry is currently offline  msgentry
Messages: 3
Registered: July 2003
Junior Member
Thanks! My plots are coming out fine now.
Megan

msgentry@unity.ncsu.edu (Megan) wrote in message news:<3f101107.0307080817.2e44fda7@posting.google.com>...
> I'm having some trouble making graphs in IDL. I have a program where I've
> calculated a growth rate of a quantity for certain intervals of time.
> I'm trying to graph my results now. Basically I have two arrays, one with
> the growth rates and the other with the julian times corresponding to them.
> The interval between measurements is a few minutes, and it is
> irregular. Is there a certain plot function or command that will allow me
> to plot my results with regular times as the x-axis labels.
> Ideally, since the measurements are every few minutes, I'd like to have it
> with the hour, minute, and second along the x-axis of the graph.
> Thanks for your help,
> Megan
Re: plotting with respect to time [message #35760 is a reply to message #35750] Tue, 08 July 2003 14:50 Go to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
"Megan" <msgentry@unity.ncsu.edu> wrote in message
news:3f101107.0307080817.2e44fda7@posting.google.com...
> I'm having some trouble making graphs in IDL. I have a program where I've
> calculated a growth rate of a quantity for certain intervals of time.
> I'm trying to graph my results now. Basically I have two arrays, one with
> the growth rates and the other with the julian times corresponding to
them.
> The interval between measurements is a few minutes, and it is
> irregular. Is there a certain plot function or command that will allow me
> to plot my results with regular times as the x-axis labels.
> Ideally, since the measurements are every few minutes, I'd like to have it
> with the hour, minute, and second along the x-axis of the graph.
> Thanks for your help,

I recommend you check out the C() (calendar) format codes. In IDLDE, type
"?format codes".

With intervals of a few minutes you will need to ensure that your time data
are in double precision and are plotted that way. IDL has supported
double-precision plotting for a few versions now. In Direct Graphics all you
need to do to activate it (I think) is to supply double-precision data. In
Object Graphics, your IDLgrView needs to have the DOUBLE keyword set.

--
Mark Hadfield "Ka puwaha te tai nei, Hoea tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
Re: plotting with respect to time [message #35764 is a reply to message #35760] Tue, 08 July 2003 10:28 Go to previous message
Haje Korth is currently offline  Haje Korth
Messages: 651
Registered: May 1997
Senior Member
Megan,
Check the online help for the 'LABEL_DATE' function. It will do exactly what
you want.

haje


--
Dr. Haje Korth
Space Physics Group
The Johns Hopkins University
Applied Physics Laboratory
MS MP3-E128
11100 Johns Hopkins Road
Laurel, MD 20723-6099
USA
Phone: 240-228-4033 (Washington), 443-778-4033 (Baltimore)
Fax: 240-228-0386 (Washington), 443-778-0386 (Baltimore)
e-mail: haje.korth@jhuapl.edu


"Megan" <msgentry@unity.ncsu.edu> wrote in message
news:3f101107.0307080817.2e44fda7@posting.google.com...
> I'm having some trouble making graphs in IDL. I have a program where I've
> calculated a growth rate of a quantity for certain intervals of time.
> I'm trying to graph my results now. Basically I have two arrays, one with
> the growth rates and the other with the julian times corresponding to
them.
> The interval between measurements is a few minutes, and it is
> irregular. Is there a certain plot function or command that will allow me
> to plot my results with regular times as the x-axis labels.
> Ideally, since the measurements are every few minutes, I'd like to have it
> with the hour, minute, and second along the x-axis of the graph.
> Thanks for your help,
> Megan
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: object graphics -> eps
Next Topic: Speed test on Mac G5, anyone?

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

Current Time: Wed Oct 08 15:14:21 PDT 2025

Total time taken to generate the page: 0.00620 seconds