PDL::Graphics::Gnuplot is a Perl module that allows PDL data to be plotted using Gnuplot as a backend. As much as was possible, this module acts as a passive pass-through to Gnuplot, thus making available the full power and flexibility of the Gnuplot backend. Gnuplot is described in great detail at its upstream website: http://www.gnuplot.info.
The main subroutine that PDL::Graphics::Gnuplot exports is plot(). A call to plot() looks like
plot(plot_options,
curve_options, data, data, ... ,
curve_options, data, data, ... );
SYNOPSIS
use PDL::Graphics::Gnuplot qw(plot plot3d);
my $x = sequence(101) - 50;
plot($x**2);
plot( title => 'Parabola with error bars',
with => 'xyerrorbars', tuplesize => 4, legend => 'Parabola',
$x**2 * 10, abs($x)/10, abs($x)*5 );
my $xy = zeros(21,21)->ndcoords - pdl(10,10);
my $z = inner($xy, $xy);
plot(title => 'Heat map', '3d' => 1,
extracmds => 'set view 0,0',
with => 'image', tuplesize => 3, $z*2);
my $pi = 3.14159;
my $theta = zeros(200)->xlinvals(0, 6*$pi);
my $z = zeros(200)->xlinvals(0, 5);
plot3d(cos($theta), sin($theta), $z);
Product's homepage
Requirements:
· Perl