my $chart = Chart::Gnuplot->new(output =>"file.png", gnuplot => /usr/bin/gnuplot", ) $chart->plot2d($dataSet0, $dataSet1);