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.

Seeking for Perl wisdom...on the process of learning...not there...yet!

In reply to Re: Locating Chart::Gnuplot by thanos1983
in thread Locating Chart::Gnuplot by SevenDimensions

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.