#!/usr/bin/perl -w use strict; use Chart::Gnuplot; # Create the chart object my $chart = Chart::Gnuplot->new( output => "plot3d_9.png", title => "3D plot with palette map", ); # Data set object my $dataSet = Chart::Gnuplot::DataSet->new( func => "-(x**2 + y**2)", style => 'pm3d', ); # Plot the graph $chart->plot3d($dataSet);