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

Home » Public Forums » archive » write_png help
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: write_png help [message #93932 is a reply to message #93931] Thu, 01 December 2016 01:33 Go to previous messageGo to previous message
Sergey Anfinogentov is currently offline  Sergey Anfinogentov
Messages: 11
Registered: September 2012
Junior Member
"write_png,'frame'+string(i)+'.png',tvrd(/true)" - Here you write the content of your current direct graphics window, but you don't redraw it inside the FOR loop. Therefore, all images are the same.

> Hi all,
> I have given below my program to create a series of frame*.png. But after doing this, s number of frames are created. But all the frames are showing same data. I think there is some problem with the code below, Can anyone please let me know what is the problem here.
>
>
> restore,'negdatanew.sav',/v
> s=size(ksom.data,/dim)
> for i=0,s(2)-1 do begin
> write_png,'frame'+string(i)+'.png',ksom(i).data
> write_png,'frame'+string(i)+'.png',tvrd(/true)
> endfor
>
>
> thanks
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Transpose of string along with float variable??
Next Topic: MosaicRaster results in "Unable to Export"

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

Current Time: Wed Oct 08 19:29:13 PDT 2025

Total time taken to generate the page: 0.00452 seconds