Skip Menu |

This queue is for tickets about the PDL-Graphics-Gnuplot CPAN distribution.

Report information
The Basics
Id: 87984
Status: open
Priority: 0/
Queue: PDL-Graphics-Gnuplot

People
Owner: Nobody in particular
Requestors: djerius [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in:
  • 1.5
  • 2.000
Fixed in: (no value)



Subject: plot3d does not accept an arrayref as its first data argument
The documentation indicates that arrayrefs[*] are acceptable as data arguments. It looks like that's not quite the case for the first argument to plot3d Show quoted text
pdl> plot3d( [0],[0],[0] )
term is wxt Runtime error: Can't call method "ndims" on unblessed reference at /proj/axaf/ots/pkgs/perl-5.16/x86_64-linux_debian-6.0/lib/site_perl/5.16.3/PDL/Graphics/Gnuplot.pm line 3209, <DATA> line 90. Show quoted text
pdl> plot3d( pdl(0),[0],[0] )
Gnuplot warning: empty x range [0:0], adjusting to [-1:1] Gnuplot warning: empty y range [0:0], adjusting to [-1:1] Gnuplot warning: empty z range [0:0], adjusting to [-1:1] Show quoted text
pdl>
[*] The documentation actually uses the term "listref", but technically there's no such thing in Perl. There are lists, by they are ephemeral and you can't take a reference to them. "listref" should be replaced by "arrayref".
This problem is still present as of PDL::Graphics::Gnuplot 2.000 with PDL-2.007_01 on cygwin+win7
This issue is still present as of PDL::Graphics::Gnuplot 2.000