#!/usr/bin/perl use warnings; use Chart::Gnuplot; my $chart = Chart::Gnuplot->new( gnuplot => 'e:\apps\gnuplot\bin\wgnuplot.exe', output => 'testfile.gif', terminal => "gif transparent", ); my @xy = ( [1.1, -3], [1.2, -2], [3.5, 0] ); my $dataSet = Chart::Gnuplot::DataSet->new( points => \@xy # func => "20*sin(x)" ); $chart->plot2d($dataSet);