On Sunday, 2 March 2014, 22:38, Suman Khanal <[email protected]> wrote:

But when I run the code in your book:
use PDL;
use PDL::Graphics::Simple;
imag (sin(rvals(200,200)+1));

I get the following error:
Trying gnuplot (PDL::Graphics::Gnuplot)...nope
Trying pgplot (PDL::Graphics::PGPLOT::Window)...nope
Trying plplot (PDL::Graphics::PLplot)...
*** PLPLOT WARNING ***
Unable to open cmap0 file cmap0_default.pal


*** PLPLOT ERROR, IMMEDIATE EXIT ***
Unable to either (1) open/find or (2) allocate memory for the font file
Program aborted
ok

*** PLPLOT WARNING ***
Unable to open cmap0 file cmap0_default.pal


*** PLPLOT ERROR, IMMEDIATE EXIT ***
Unable to either (1) open/find or (2) allocate memory for the font file
Program aborted

Try setting PLPLOT_LIB environment variable to the location of
cmap0_default.pl.
For me, that file is in /usr/local/share/plplot5.9.11 - so (for a unix type
OS):

export PLPLOT_LIB=/usr/local/share/plplot5.9.11

Cheers,
Rob

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

Reply via email to