Hi Tsuyoshi:

I've never used PDL and PDL::Graphics::PLplot with Moose.  PDL list folks:
have any of you had this problem and overcome it?

As to item 2, I think code like this for $y:

my $y = pdl(0,1,2,104,4,5,24,7,8,99);

would make things work.  Currently, your $y is a reference
to a perl list, not a pdl object.

Regards,

  Doug Hunt


[email protected]
Software Engineer
UCAR - COSMIC, Tel. (303) 497-2611

On Tue, 29 Jul 2014, tsuyoshi okita wrote:

Hello,

Thank you for providing us PDL::Graphics::PLplot.
I have a several questions I need to ask. I could not find any mailing list for PDL::Graphics::PLplot. I just started to using PDL::Graphics::PLplot. So my questions might sound silly to you, but I hope you can bear with it.

1. I attached a simple perl code.  This is what happends.
if I add use Moose; it gives a following message:
"Prototype mismatch: sub main::inner: none vs (;@) at (eval 168) line 8."
2. I have been trying to plot a bundle of data.
my $x = sequence(10);
my $y  = [0,1,2,104,4,5,24,7,8,99];
 $pl->xyplot($x, $y,);
 $pl->close;

this code gives me this error message:
"Can't call method "minmax" on unblessed reference at /usr/local/lib/perl/5.14.2/PDL/Graphics/PLplot.pm line 1595."

I understand this has to do with $y. It works if I add my $y = sequence(10);. I looked into PDL::Graphics::PLplot site and plplot documents, but nothing mention about sequence().

I am sure you are busy, but if you can help me out, I would be grateful.

Thank you.

Tsuyoshi Okita


_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to