Hi Craig,
I may have found a bug, or rather lack of feature, I guess. I thought I
better let you know.
$ni is an object from a class declared as
use base PDL:
to make of the {PDL} key magic. Apparently, this breaks P::G::G.
pdl> gplot $$ni{PDL}->(,,0,0,0,0,0) # works!
pdl> help $ni(,,0,0,0,0,0)
This variable is Double D [16,16,1,1,1,1,1] -C 0.00KB
pdl> gplot $ni->(,,0,0,0,0,0) # gives this error:
Runtime error: Found 0 PDLs for 2D plot type 'with lines', which needs
one of [1,2].
at /usr/lib64/perl5/vendor_perl/5.16.3/PDL/Graphics/Gnuplot.pm line
3348, <FOO> line 173.
PDL::Graphics::Gnuplot::parseArgs('PDL::Graphics::Gnuplot=HASH(0x4bb70a8)',
'PDL::IO::Nifti=SCALAR(0x4bcc568)') called at
/usr/lib64/perl5/vendor_perl/5.16.3/PDL/Graphics/Gnuplot.pm line 2501
PDL::Graphics::Gnuplot::plot('PDL::IO::Nifti=SCALAR(0x4bcc568)')
called at (eval 484) line 5
printing works:
pdl> p $ni->(,,0,0,0,0,0)
[
[
[
[
[
[
[ 0 43 75 63 102 57 42 58 64 76 68 31 51 89 91 101]
[ 0 66 32 40 75 100 90 86 52 88 67 60 79 90 56 76]
[ 0 56 71 95 82 77 98 66 83 43 70 128 86 90 82 84]
[ 0 58 55 48 25 43 42 35 33 40 63 53 39 36 46 47]
[ 0 92 83 103 60 74 34 48 87 66 101 49 136 84 41 56]
[ 0 36 42 81 33 78 60 41 38 64 41 61 51 79 74 38]
[ 0 68 74 79 42 82 65 54 49 33 71 65 43 57 51 59]
[ 0 72 77 70 57 79 40 66 49 78 21 36 56 84 50 89]
[ 0 60 50 35 62 60 55 75 51 89 57 69 107 94 43 76]
[ 0 36 43 102 113 65 38 59 63 81 65 49 79 70 73 45]
[ 0 82 78 86 88 87 48 50 58 39 71 69 85 54 69 83]
[ 0 71 91 52 85 64 88 60 71 79 82 82 58 50 54 96]
[ 0 76 83 70 103 95 47 40 77 52 53 53 52 72 27 48]
[ 0 74 63 69 48 67 29 79 57 30 124 63 41 45 83 88]
[ 0 62 74 69 33 35 74 64 82 65 52 53 82 67 40 84]
[ 0 58 52 68 69 65 108 54 113 45 78 66 71 86 40 64]
]
]
]
]
]
]
Ingo
Post by Craig DeForestPGG v2.000 uses Alien::Gnuplot for configuration management and includes many small bug fixes.
AG v1.010 works in both POSIX and Microsoft Windows environments.
Thanks very much to Chris and to Jurgen for the usual extensive rounds of testing, trying to get Microsoft Windows' limited IPC to work properly.
Happy hacking,
Craig
_______________________________________________
PDL-porters mailing list
http://mailman.jach.hawaii.edu/mailman/listinfo/pdl-porters