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

Home » Public Forums » archive » Plotting a long vector on PV-WAVE
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
Plotting a long vector on PV-WAVE [message #10468] Mon, 01 December 1997 00:00
Christos Siopis is currently offline  Christos Siopis
Messages: 1
Registered: December 1997
Junior Member
Greetings,

I have a long real-number vector (of more than 10,000 elements) that
I would like to plot (e.g., versus time). However, if I plot the
whole thing the display gets crammed... The best way I can think of
to view the data is to see it as a time series: plot only a few data
points at a time and "pan" (scroll) the viewing window to the right.

I tried to do something like that, using the Z buffer to avoid the
flickering, but the program runs very slow (it takes about 1/3 or 1/2
of a second between consecutive frames on a Pentium/Linux machine).
Is this normal? Here is the procedure I used (PV-WAVE):

PRO pan, x, n, win, stp

; x = fltarr(n)
; n = number of datapoints (e.g., 10000)
; win = viewing window size (e.g., 100 data points at a time)
; stp = how much to shift to the right between successive
; snapshots (e.g., 10)

thisdev = !D.Name
for i = 0, n-win-1 do begin
set_plot, 'z'
plot, x(i:i+win), psym=-2
snap = tvrd(0,0,640,512)
set_plot, thisdev
tv, snap
if (get_kbrd(0) ne "") then return
endfor
END

What's also funny is that the "TV, snap" command worked
instantaneously on a low-end Sun workstation but it would need half a
second or more to "unroll" on a much faster DEC Alpha machine. Could
it be that the Alpha's display holds more information?

Thank you,
Christos
--
************************************************************ *******
/ Christos Siopis | Voice : (352) 374-6833 (home) \
/ Graduate Student | (352) 392-0123 (office) \
/ P.O. Box 112055 | \
/ Department of Astronomy | FAX : (352) 392-5089 \
/ University of Florida | \
/ Gainesville, FL 32611-2055 | E-mail: siopis@astro.ufl.edu \
/ U.S.A. __________________| \
/ / http://www.astro.ufl.edu/~siopis/group/index.html#me \
************************************************************ *******
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Map_set limits / position
Next Topic: Re: pv-wave 5.00,scaling

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

Current Time: Sat Oct 11 16:39:25 PDT 2025

Total time taken to generate the page: 0.31820 seconds