----- Original Message -----
From: "Fabio D'Alfonso" <[email protected]>
To: <[email protected]>
Sent: Monday, October 08, 2012 5:17 AM
Subject: [Perldl] Helix Example Does Not Work on Windows
Hi,
this example does not work on Windows.
The console comes but the gnuplot does not.
Thanks
use PDL;
use PDL::Graphics::Gnuplot;
my $pi = 3.14159;
my $theta = xvals(201) * 6 * $pi / 200;
my $z = xvals(201) * 5 / 200;
gplot( {'3d' => 1, title => 'double helix'},
{with => 'linespoints pointsize variable pointtype 2 palette',
legend => ['spiral 1','spiral 2']} ,
pdl( cos($theta), -cos($theta) ), # x
pdl( sin($theta), -sin($theta) ), # y
$z, # z
(0.5 + abs(cos($theta))), # pointsize
sin($theta/3), # color
{with=>'points pointsize variable pointtype 5'},
zeroes(6), # x
zeroes(6), # y
xvals(6), # z
xvals(6)+1, # point size
{size=>'xyz equal'}
);
--
Yeah, it hangs for me, too.
If you have the time, it would be helpful if you could play about with the
script and see if you can discover something that improves it.
Note that when that script hangs and you kill the process in the console
(Ctrl-C), the gnuplot.exe process continues to exist.
Run the script again, then kill it again ... and you've now got 2 zombie
gnuplot.exe processes.
I've been running this script to clean up such zombies:
###################
use warnings;
system 'taskkill', '/F', '/IM', 'gnuplot.exe';
###################
It might not work on all versions of Windows, and I think it will clean up
only one zombie at a time.
Anyway, if you run it and you get:
ERROR: The process "gnuplot.exe" not found.
then that should mean that no instances of gnuplot.exe existed.
Otherwise it should output something like:
SUCCESS: The process "gnuplot.exe" with PID 2084 has been terminated.
Cheers,
Rob
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl