Term::Gnuplot 0.90380905 review
Download
|
|
Term::Gnuplot is a Perl module for lowlevel graphics using gnuplot drawing routines.
SYNOPSIS
use Term::Gnuplot ':ALL';
list_terms();
change_term('dumb') or die "Cannot set terminal.n";
term_init(); # init()
term_start_plot(); # graphics();
$xmax = scaled_xmax();
$ymax = scaled_ymax();
linewidth(1.0)
linetype(LT_BLACK);
move(0,0);
vector($xmax-1,0);
vector($xmax-1,$ymax-1);
vector(0,$ymax-1);
vector(0,0);
justify_text(LEFT);
put_text(h_char()*5, $ymax - v_char()*3,"Terminal Test, Perl");
$x = $xmax/4;
$y = $ymax/4;
$xl = h_tic()*5;
$yl = v_tic()*5;
linetype(2);
arrow($x,$y,$x+$xl,$y,1);
arrow($x,$y,$x+$xl/2,$y+$yl,1);
arrow($x,$y,$x,$y+$yl,1);
arrow($x,$y,$x-$xl/2,$y+$yl,0);
arrow($x,$y,$x-$xl,$y,1);
arrow($x,$y,$x-$xl,$y-$yl,1);
arrow($x,$y,$x,$y-$yl,1);
arrow($x,$y,$x+$xl,$y-$yl,1);
term_end_plot(); # text();
Term::Gnuplot::reset();
Requirements:
Perl
Term::Gnuplot 0.90380905 search tags