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

Home » Public Forums » archive » Re: Time-Series problem
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: Time-Series problem [message #2116] Tue, 31 May 1994 09:25
llobet is currently offline  llobet
Messages: 10
Registered: May 1993
Junior Member
In article <Cqo30t.5p2@festival.ed.ac.uk>, esc@met.ed.ac.uk (E Carr) writes:

=OK, I'm running a time-series program
=e.g.
=----------------------------------------------
=Pro test

=X=[1,2,3,6,7,8,12,13,14]
=Y=[2.3,2.7,3.6,3.2,3.05,3.24,3.132,2.1,3.4]

=plot,X,Y
=end
=------------------------------------------------

=Ideally I would like three seperate lines so
=as to make clear the missing values at X=4,5,9,10,11.
=I know I can use "oplot" in the example above

=i.e.
=X1=[1,2,3]
=Y1=[2.3,2.7,3.6]

=plot,X1,Y1
=oplot...........
=olpot............

=but my time-series is much bigger than this.
=I also don't want to use the "psym= n" keyword.
=I'D LIKE CONTINOUS LINES JOINING ADJACENT POINTS
=AND GAPS IN BETWEEN.

=Any ideas would be much appreciated

=Ewan

Try this:

x=[1,2,3,6,7,8,12,13,14]
y=[2.3,2.7,3.6,3.2,3.05,3.24,3.132,2.1,3.4]

xmax=max(x)
ymax=max(y)
xi=indgen(xmax)+1
z=replicate(ymax+10,xmax)
z(x-1)=y
plot,xi,z,max=ymax+1

Hope it helps.

-xavier
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Fast I/O of large files
Next Topic: Time-Series problem

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

Current Time: Wed Oct 08 19:50:30 PDT 2025

Total time taken to generate the page: 0.00527 seconds