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

Home » Public Forums » archive » Re: how to animate/loop plots (not images)
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: how to animate/loop plots (not images) [message #6802] Thu, 29 August 1996 00:00
David Foster is currently offline  David Foster
Messages: 341
Registered: January 1996
Senior 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

For each plot:

1. display the plot
2. read the contents of the graphics window into an array
using TVRD() (eg. array = TVRD() )
3. save the array to file (save all arrays to the same file)

Then animate using XINTERANIMATE.
Hope this helps.
--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2200
La Jolla, CA 92037
[ UCSD Mail Code 0949 ]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
Re: how to animate/loop plots (not images) [message #6812 is a reply to message #6802] Thu, 29 August 1996 00:00 Go to previous message
Stefan Schor is currently offline  Stefan Schor
Messages: 5
Registered: August 1996
Junior 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.

You can use a Z-Buffer, and read the Image via

tvrd !

Then you have an array of images...
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Another widget_button question
Next Topic: Re: [Q]Finding Screen Resolution in IDL

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

Current Time: Wed Oct 08 15:37:04 PDT 2025

Total time taken to generate the page: 0.00479 seconds