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

Home » Public Forums » archive » Re: dumb q: waterfall
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: dumb q: waterfall [message #13179] Mon, 26 October 1998 00:00 Go to previous message
Phillip & Suzanne is currently offline  Phillip & Suzanne
Messages: 31
Registered: June 1998
Member
David Fanning wrote:

> Nancy R. Galbraith (ngalbraith@whoi.edu) writes:

>> Sorry, I can't find this in the manual. I need to make a "waterfall
>> plot" in which the y axis applies to the first bin of data in a 2d
>> time series, and the subsequent bins are offset from the first. Its
>> pretty simple in a lot of plotting pkgs, but I cat see the right
>> way to do it in idl. Any advice would be greatly appreciated.

> I guess there are many ways to do this, but here is
> a short example that I modified a bit to make it look
> like your little drawing. I hope it will be enough
> to give you the idea anyway.

> David

David has a good idea to start, but it turns out that the SURFACE routine
actually makes this type of plot VERY simple. Here's David's code hacked to
use it.

PRO Waterfall

; Create the data.

seed = 1L
data = FltArr(6, 101)
FOR count = 0, 5 DO BEGIN
row = RandomU(seed, 101)
FOR j=0,4 DO row = Smooth(row, 3)
data[count, *] = row * 30
ENDFOR

; Display window

Window, XSize=300, YSize=500

; Draw the plots.
surface, data, ax=70, az=0, /horizontal, /upper, zaxis=-1
END


Phillip
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Anybody !!! Help me !!! About IDL!!! And ...
Next Topic: Re: double event

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

Current Time: Fri Oct 10 19:54:16 PDT 2025

Total time taken to generate the page: 0.48348 seconds