Tried to do that, but I'm getting the following error : Illegal 'owner' reference passed to Prima::Plot::init. Probably you forgot to include 'use Prima::Application' in your code. Error at /usr/lib/perl5/site_perl/5.12.4/PDL/Graphics/Prima.pm line 84, <DATA> line 90.
if I do : use Prima::Application; or use Prima qw(Application);#!!! then I get : Can't locate Prima/Applicaton.pm ..... On Thu, Nov 21, 2013 at 6:36 AM, David Mertens <[email protected]> wrote: > 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 and the > postscript output example. > > 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
