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

Home » Public Forums » archive » how to animate/loop plots (not images)
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: how to animate/loop plots (not images) [message #6947 is a reply to message #6815] Thu, 29 August 1996 00:00 Go to previous message
Robert Moss is currently offline  Robert Moss
Messages: 74
Registered: February 1996
Member
Charlotte DeMott wrote:
>
> I have a series of simple 2D line plots that I would like to animate.
> I'm currently writing the plots to a postscript file, and then using
> some external applications to convert them to (unfortunately large)
> tiff files and then loop them. Is there a simpler way to do this in
> IDL? The manuals talk about how to loop a series of images stored
> in a single array, but this isn't what I'm dealing with.
>
> Thanks for any insight on this problem.
>
> Charlotte
> demott@olympic.atmos.colostate.edu


You can use XINTERANIMATE to do this. The trick is to plot your
images to a pixmap, then use TVRD to get the pixmap and load it
into XINTERANIMATE.

XINTERANIMATE, SET=[256,256,10] ;SAY YOU HAVE 10 PLOTS
WINDOW, /FREE, /PIXMAP, XSIZE=256, YSIZE=256
FOR I=0,9 DO BEGIN
PLOT, X, Y ;DO YOUR 10 PLOTS HERE AS YOU SEE FIT
XINTERANIMATE, FRAME = I, IMAGE = TVRD()
ENDFOR
XINTERANIMATE, /KEEP_PIXMAPS

Of course these plots will have screen resolution, but since
your displaying it on the screen that shouldn't be a problem

--
Robert M. Moss, Ph.D. - mossrm@texaco.com - FAX (713)954-6911
------------------------------------------------------------ -----
This does not necessarily reflect the opinions of Texaco Inc.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Widget problem
Next Topic: [Q] Colormaps and setting !D.N_COLORS

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

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

Total time taken to generate the page: 0.00460 seconds