Hello SevenDimensions,
Welcome to the Monastery. How did you install both Perl and Charts::Gnuplot from source? Have you tried to install through cpan?
Form me I am running on LinuxOS Perl and I just installed the Charts::Gnuplot through cpan and it seems to be working just fine. I tested with the sample of code from the documentation:
#!/usr/bin/perl use strict; use warnings; use Data::Dumper; use Chart::Gnuplot; # Data my @x = (-10 .. 10); my @y = (0 .. 20); # Create chart object and specify the properties of the chart my $chart = Chart::Gnuplot->new( output => "fig/simple.png", title => "Simple testing", xlabel => "My x-axis label", ylabel => "My y-axis label", ); # Create dataset object and specify the properties of the dataset my $dataSet = Chart::Gnuplot::DataSet->new( xdata => \@x, ydata => \@y, title => "Plotting a line from Perl arrays", style => "linespoints", ); # Plot the data set on the chart $chart->plot2d($dataSet); __END__ $ perl test.pl $ ls -la fig | grep simple -rw-rw-r-- 1 tinyos tinyos 9401 Feb 1 19:18 simple.png
On your OS have you installed also gnuplot? It will be necessary alternatively you will get the error sh: 1: gnuplot: not found.
Looking forward to your reply, BR.
In reply to Re: Locating Chart::Gnuplot
by thanos1983
in thread Locating Chart::Gnuplot
by SevenDimensions
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |