Re: plotting with respect to time [message #35760 is a reply to message #35750] |
Tue, 08 July 2003 14:50   |
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)
|
|
|