in reply to Re^3: PDL questions
in thread PDL questions

thank you BrowserUk, as always you supply a clear specific answer for the non prof users. i have applied your suggestion
my $w = PDL::Graphics2D->new('PGPLOT');
and added also use PGPLOT;
and yes i can run all the code and display a window like this
http://img409.imageshack.us/img409/1384/erroriu.png
but with an error at the final line
"Can't locate object method "imag2d" via package "PDL" at err.pl line 13"
this is the same using windows xp and linux mint
i choose linux mint because it is super easy to install modules directly from their site. and indeed it is the first time i am using linux. also i want to thank zentara for the second version of the "PDL 3d image cube" example in www.perlmonks.org/?node_id=591731
it is working well rotate and zoom in and out with the mouse.
regards

Replies are listed 'Best First'.
Re^5: PDL questions
by Corion (Patriarch) on Sep 27, 2010 at 17:46 UTC

    If you want help, you will need to show us the actual code you're running. Also, please don't post screenshots where the simple source code and text output of Perl suffices. That makes it much easier for us to reproduce the problem and thus helps us help you better.

    I suspect that, for some unshown reason, you have something like the following in your code at line 13:

    my $p = sequence(64,48,3); # make test RGB image my $win = $p->imag2d();

    The documentation of PDL::Image2D claims that the usage is not as a method but as a separate function:

    use PDL::Graphics2D; my $p = sequence(64,48,3); # make test RGB image my $win = imag2d( $p );