App::Basis::ConvertText2::Plugin::Gnuplot
my $content = "# # $Id: surface1.dem,v 1.11 2004/09/17 05:01:12 sfeam Exp $ # set samples 21 set isosample 11 set xlabel "X axis" offset -3,-2 set ylabel "Y axis" offset 3,-2 set zlabel "Z axis" offset -5 set title "3D gnuplot demo" set label 1 "This is the surface boundary" at -10,-5,150 center set arrow 1 from -10,-5,120 to -10,0,0 nohead set arrow 2 from -10,-5,120 to 10,0,0 nohead set arrow 3 from -10,-5,120 to 0,10,0 nohead set arrow 4 from -10,-5,120 to 0,-10,0 nohead set xrange [-10:10] set yrange [-10:10] splot x*y " ; my $params = {} ; my $obj = App::Basis::ConvertText2::Plugin::Gnuplot->new() ; my $out = $obj->process( 'gnuplot', $content, $params) ;
convert a gnuplot text string into a PNG, requires gnuplot program http://gnuplot.sourceforge.net/
create a simple gnuplot image
parameters data - gnuplot text filename - filename to save the created image as hashref params of title - title to use for image alt attribute size - size of image, widthxheight - optional, default 720x512
1 POD Error
The following errors were encountered while parsing the POD:
'=item' outside of any '=over'
=over without closing =back
To install App::Basis::ConvertText2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Basis::ConvertText2
CPAN shell
perl -MCPAN -e shell install App::Basis::ConvertText2
For more information on module installation, please visit the detailed CPAN module installation guide.