#!/usr/bin/perl -w use strict; use Chart::Gnuplot; # Set the HTML5 canvas terminal my $terminal = 'canvas standalone mousing jsdir '. '"http://gnuplot.sourceforge.net/demo_canvas"'; # Create the chart object my $chart = Chart::Gnuplot->new( terminal => $terminal, output => "mouse_4.html", ); # Data set my $dataSet = Chart::Gnuplot::DataSet->new( func => "cos(x)", ); # Plot the graph $chart->plot2d($dataSet);