mraptor -

Never underestimate the utility of an example script that produces the
problem. That said, I think I can tease out the issue. First, auto_twiddle
is only defined for Prima in PDL::Graphics::Prima::Simple, so I presume
you're working with that module. In that case, bear in mind that plotting
commands in the ::Simple interface *always* build a window. The behavior of
auto_twiddle(0) is to make sure that plotting commands don't block
execution of your script. (In case it's not clear, I use the term "block"
just as folks talk about blocking and non-blocking IO.) Let me know if that
needs further explanation.

If you are trying to make a "hard copy" of a figure, i.e. a postscript or
raster image file, you do not need to use the Simple interface (although it
is a bit simpler). Instead, you can create the Prima::Plot widget directly.
To see this in action, check out the the png output
example<https://github.com/run4flat/PDL-Graphics-Prima/blob/master/examples/png-output-no-interaction.pl>and
the postscript
output 
example<https://github.com/run4flat/PDL-Graphics-Prima/blob/master/examples/ps-output-no-interaction.pl>
.

David


On Wed, Nov 20, 2013 at 8:28 PM, mraptor <[email protected]> wrote:

> I've already set auto_twiddle(0).. but I still see the image pop up
> and disappears ..
> Is there a way to disable this behaviour ?
>
> thanks
>
> _______________________________________________
> Perldl mailing list
> [email protected]
> http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
>



-- 
 "Debugging is twice as hard as writing the code in the first place.
  Therefore, if you write the code as cleverly as possible, you are,
  by definition, not smart enough to debug it." -- Brian Kernighan
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to