duminică, 8 noiembrie 2015

ATELIER -> Primul grafic plot in Perl

Module pentru grafice in Perl:

Acesta este codul Perl care genereaza graficul test.png.

#!/usr/bin/perl

use PDL::Graphics::PLplot;
use PDL;
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;


Resurse:
http://plplot.sourceforge.net/
http://search.cpan.org/~dhunt/PDL-Graphics-PLplot/plplot.pd
http://www.slideshare.net/dcmertens/p-lplot-talk
https://github.com/gphat/chart-clicker-examples 

Niciun comentariu:

Trimiteți un comentariu