Re: how to animate/loop plots (not images) [message #6802] |
Thu, 29 August 1996 00:00 |
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  |
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...
|
|
|