I installed PDL::Graphics::PLplot by the following doc.

http://sourceforge.net/apps/mediawiki/pdl/index.php?title=Installing_PDL_on_Windows

I tried the following code.

-----------------------------
  use PDL;
  use PDL::Graphics::PLplot;

  my $pl = PDL::Graphics::PLplot->new (DEV => "png", FILE => "test.png");
  my $x  = sequence(10);
  my $y  = $x**2;
  $pl->xyplot($x, $y);
  $pl->close;
---------------------------------

But I can't output png format. The following message is shown.

------------------------------
Requested device png not available

Plotting Options:
 < 1> wingcc     Win32 GCC device
 < 2> ps         PostScript File (monochrome)
 < 3> psc        PostScript File (color)
 < 4> xfig       Xfig file
 < 5> null       Null device
 < 6> mem        User-supplied memory device
 < 7> svg        Scalable Vector Graphics (SVG 1.1)
-----------------------------------

Perl version
------------
This is perl 5, version 16, subversion 3 (v5.16.3) built for
MSWin32-x86-multi-t
hread
(with 1 registered patch, see perl -V for more detail)

Copyright 1987-2012, Larry Wall

Binary build 1603 [296746] provided by ActiveState
http://www.ActiveState.com
Built Mar 13 2013 11:29:21
------------
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to