It works for me, insofar as I understand your question.
When I run imag($z) I see a two dimensional plot with light values at the top and dark values at the bottom.
This is all run in the pdl2 shell under Strawberry Perl 5.30.0 (PDL version, via its portableshell.bat).
use PDL::Graphics::Simple;
$t = sequence(10)+1;
$x = log($t)->dummy(1,10);
$y = ($t**2)->dummy(0,10);
$x = $x + $y/10;
$z = $x+$y;
imag($z);
Some caveats are that I had to force install PDL::Graphics::Simple due to a failing test, and that the plot window seems to hang. Closing the plot window kills the pdl2 shell, but you can interact with the shell while the plot is open.
|