----- 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'}
);
--
This now works fine for me with version 1.2 (or later) of
PDL::Graphics::Gnuplot.
Let us know if that code still poses a problem for you - or if you strike
other scripts that don't work as they should..
Cheers,
Rob
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl