#!/usr/bin/perl -w use strict; use Chart::Gnuplot; # Create the chart object my $chart = Chart::Gnuplot->new( output => "range_2.png", xlabel => "Auto lower limit. ". "User-specified upper limit", xrange => ["*", "pi"], ylabel => "User-specified lower limit. ". "Auto upper limit", yrange => [0, "*"], ); # Data set object my $dataSet = Chart::Gnuplot::DataSet->new( func => "sin(x)", ); # Plot the graph $chart->plot2d($dataSet);