Graphics-GnuplotIF
view release on metacpan or search on metacpan
lib/Graphics/GnuplotIF.pm view on Meta::CPAN
my $plot3 = GnuplotIF; # new plot object
my @xyz = ( # 2-D-matrix, z-values
[0, 1, 4, 9],
[1, 2, 6, 15],
[4, 6, 12, 27],
[9, 15, 27, 54],
);
$plot3->gnuplot_cmd( "set grid" ); # send a gnuplot command
$plot3->gnuplot_set_plot_titles("surface"); # set legend
$plot3->gnuplot_plot_3d( \@xyz ); # start 3-D-plot
$plot3->gnuplot_pause( ); # hit RETURN to continue
=head1 DESCRIPTION
Graphics::GnuplotIF is a simple and easy to use dynamic Perl interface to
B<gnuplot>. B<gnuplot> is a freely available, command-driven graphical display
tool for Unix. It compiles and works quite well on a number of Unix flavours
as well as other operating systems, including Windows with C<gnuplot.exe>.
lib/Graphics/GnuplotIF.pm view on Meta::CPAN
A few named arguments can be passed as key - value pairs (here shown with
their default values):
program => 'gnuplot' # fully qualified name of the Gnuplot executable
style => 'lines', # one of the gnuplot line styles (see below)
title => '', # string
xlabel => 'x', # string
ylabel => 'y', # string
xrange => [], # array reference; autoscaling, if empty
xrange => [], # array reference; autoscaling, if empty
plot_titles => [], # array of strings; titles used in the legend
scriptfile => '', # write all plot commands to the specified file
plot_also => 0, # write all plot commands to the specified file,
# in addition show the plots
persist => 0, # let plot windows survive after gnuplot exits
# 0 : close / 1 : survive
objectname => '', # an optional name for the object
silent_pause => 1, # 0 suppress message from gnuplot_pause()
no_error_log => 0, # suppress ".gnuplot.${$}.${object_number}.stderr.log" file
These attributes are stored in each object.
( run in 1.418 second using v1.01-cache-2.11-cpan-49f99fa48dc )