Graphics::Plotter is a Perl extension for C++ plotter library from GNU plotutils.
SYNOPSIS
use Graphics::Plotter::;
use Graphics::Plotter:: qw(parampl);
use Graphics::Plotter:: qw(:marker_symbols :op_codes);
use Graphics::Plotter:: qw(:all);
EXAMPLE
$handle = Graphics::Plotter::X->new(STDIN,STDOUT,STDERR);
if ($handle->openpl() < 0) {
die "Could not create plotter: $!n";
}
$handle->fspace(0,0,1000,1000);
$handle->flinewidth(0.25);
$handle->pencolorname("red");
$handle->erase();
$handle->fmove(600,300);
$handle->line(0,20,40 80);
if ($handle->closepl() < 0) { die "closepl: $!n";}
Graphics::Plotter module is the Perl implementation of the GNU plotutils' libplotter library - C++ function library for device-independent two-dimensional vector graphics. There is also libplot library, based on C code, but with C++ library you do not need to switch between plotters.
The plotutils distribution is written by Robert Maier (http://www.gnu.org/software/plotutils/plotutils.html). Descriptions of functions are based on Chapter 8 of plotutils info documentation.
The latest version of Graphics::Plotter perl module is available at CPAN.
The perl program can produce output in one of the following formats:
X - new window on an X Window System display
Xdrawable - existed X window or pixmap
PNM - This is "portable anymap" format (PBM, PGM and PPM)
GIF - Pseudo GIF (GIF format without LZW compression)
AI - Adobe Illustrator (parameter ai)
PS - idraw-editable Postscript (ps)
Fig - xfig-editable format (fig)
PCL - HP Printer Control Language format (pcl)
HPGL - HP Graphics Language (hpgl)
Tek - understood by Tektronix 4014 terminals (tek)
Metafile - device-independent GNU graphics format (meta)
Requirements:
· Perl
Product's homepage
Requirements:
· Perl