Message: 10
Date: Thu, 15 Feb 2007 15:22:04 -0700
From: "Adam Ginsburg" <[EMAIL PROTECTED]>
Subject: [Perldl] PDL::Gaussian errors, handy tool questions
To: [email protected]
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
(I posted a similar message on comp.lang.perl.misc before realizing
this was probably the correct forum)
When I try something like this:
my $gauss=new PDL::Gaussian([2],[1]);
my $covar=$gauss->get_covariance();
$covar->slice('0,0')++;
$gauss->upd_covariance();
in either a script or the perldl terminal, I get errors:
Use of inherited AUTOLOAD for non-method PDL::Primitive::sumover() is
deprecated at /usr/lib/perl5/PDL/Gaussian.pm line 221.
Can't locate auto/PDL/Primitive/sumover.al in @INC (@INC contains: /
etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/
lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/
local/lib/site_perl .) at /usr/lib/perl5/PDL/Gaussian.pm line 221
sumover.al doesn't exist on my computer/in my include directories,
though CPAN claims that my PDL installation is up to date. Can anyone
help me figure out what's wrong?
Is there any way to enable "up-key" functionality as in bash to recall
the previous
command at the perldl command line? Use the left arrow to go back in
the command?
And within PDL::Graphics::PGPLOT, is there any means to put a title
onto a graph/image within the "imag" task? I could use "env" to
create titles, but then I'd have to specify the x and y axes, right?
fits_imag gives me axis labels, but still no title.
Thanks,
Adam
Hi Adam,
I just was messing with this stuff yesterday.. just pass the "Title"
into the options hash to imag or fits_imag.
Example below:
$win->fits_imag($myimage, {XTitle => 'Right Acension (degrees)',
YTitle=> 'Declination (degrees)', Title => "An Awesome Image"});
This will change the XTitle and YTitle as well.
If you're using it in the non-OO way, then just omit the $win-> part.
The documentation for all this is strewn about three different web
pages (PDL::Graphics::PGPLOT, PDL::Graphics::PGPLOT::Window, and
PDL::Graphics::PGPLOTOptions) , so I can understand why it wasn't
obvious.
Hope this helps.
Cheers,
David Donovan
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl