----- Original Message -----
From: "Fabio D'Alfonso" <[email protected]>
To: "Sisyphus" <[email protected]>
Cc: <[email protected]>
Sent: Monday, January 16, 2012 8:21 PM
Subject: Re: [Perldl] PLPlot on Windows/XMing - PLPLOT_LIB Solved
Hi,
solved, that was the PLPLOT_LIB to be set.
Phew !!
The need to set PLPLOT_LIB is documented ... but very easy to miss :-)
Thanks
No problem.
I personally don't use either PDL::Graphics::PGPLOT or PDL::Graphics::PLplot
but, despite the appearance of the unwelcome pop-up box, I was struck by the
simplicity of:
######################
use warnings;
use PDL;
use PDL::Graphics::PGPLOT;
$a = rfits("m51.fits");
dev($^O =~ /MSWin32/ ? '/GW' : '/XSERVE');
imag $a;
######################
Can the same be displayed in the plplot graphics window ? .... that is, with
a script of comparable simplicity ?
Personally, for that particular script (and using PDL::Graphics::PGPLOT), I
think I would replace
dev($^O =~ /MSWin32/ ? '/GW' : '/XSERVE');
with
dev($^O =~ /MSWin32/ ? '/PNG' : '/XSERVE');
and then view the resultant png file. (No pop-ups at all.)
Fabio, as far as I can tell, there's no easy way of avoiding that pop-up on
Windows whenever a script that uses the grwnd.exe exits.
The best I could do is provide a grwnd.exe whose pop-up provides an option
for "closing"/"not closing" the grwnd.exe window. (I think that such a
grwnd.exe exists, though I haven't located it yet.)
The grwnd.exe that's currently provided by the 32-bit PGPLOT ppm package can
only "close" the window ... the "do not close" option is missing :-(
Cheers,
Rob
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl