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

Home » Public Forums » archive » Re: data as x-axis
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: data as x-axis [message #29209] Wed, 06 February 2002 14:26
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
"Dirk Burose" <dirk.burose@uni-bonn.de> wrote in message
news:3c61a43a@news.wau.nl...
> Hi all,
> I am using the plot or xplot command to plot an ascii dataset.

An ascii dataset? Ascii is an encoding for character data. Are you plotting
these data as numbers or strings?

> Now I would like to use another dataset as a x-axis, but by
> now I have no idea how to do
> that. The data I like to use are 10 min intervals for several days.
> Any suggestions how to do it?

You mean you want to use the other dataset for x-axis labels? Plot has an
XTICKNAME keyword that will set the tick labels. But if you plot at 10
minute intervals you will have far too many labels to be able to see them.

Or do you mean you want to use the other dataset to specify the x position
of the data points? That's easy. If PLOT is called with one argument, that
argument specifies the Y position of the points on the plot; if it is called
with 2 arguments, those arguments specify the X & Y positions respectively.
So instead of

plot, y

use

plot, x, y

If you want the X axis to show date & time of day, you need to convert the
time (x) data to a standard form called Julian Day number. There's a section
in the manual on this.

---
Mark Hadfield
m.hadfield@niwa.co.nz http://katipo.niwa.co.nz/~hadfield
National Institute for Water and Atmospheric Research
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: ARG! Direct Color problem IDL 5.5/Linux (decomposed doesn't help)
Next Topic: CFD with IDL ???

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

Current Time: Thu Oct 09 21:21:44 PDT 2025

Total time taken to generate the page: 0.00320 seconds