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

Home » Public Forums » archive » Re: Incomplete ouput PNG files.
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: Incomplete ouput PNG files. [message #78700 is a reply to message #78699] Thu, 15 December 2011 02:16 Go to previous messageGo to previous message
lecacheux.alain is currently offline  lecacheux.alain
Messages: 325
Registered: January 2008
Senior Member
On 14 déc, 18:26, Mark Piper <mpi...@ittvis.com> wrote:
> On 12/14/2011 9:43 AM, alx wrote:
>
>> Setting the BUFFER keyword actually solved the problem. I now
>> understand what this keyword is useful to, a long lasting
>> interrogation for me! Thanks Mark.
>> alain.
>
> Cool -- you're welcome! Another idea: since there's overhead in
> creating/destroying NG windows, it may help to use the SetData method
> for batching a series of plots:
>
>     data = list(of_images)
>     p = image(data[0], /buffer)
>     p.save, 'image0.png'
>
>     for i=1, data.count()-1 do begin
>        p.setdata, data[i]
>        p.save, 'image' + strtrim(i,2) + '.png'
>     endfor
>
>     p.close
>
> mp

Using setdata/getdata would be efficient. But most of the overhead, in
my case, is due to the computing/writing on disk of the PNG file (i.e.
"p.save").
alx.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Window with Black Background
Next Topic: Re: Compare Coyote Graphics Output with Function Graphics Output

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

Current Time: Fri Oct 10 20:42:22 PDT 2025

Total time taken to generate the page: 0.40091 seconds