Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Chart::Gnuplot 0.20

    Download button

    No screenshots available
    Downloads: 538  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Ka-Wai Mak | More programs
    Perl Artistic License / FREE
    May 2nd, 2010, 09:37 GMT [view history]
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Chart::Gnuplot description

    Plot graph using Gnuplot on the fly

    Chart::Gnuplot is a Perl module to plot graphs uning GNUPLOT on the fly. In order to use this module, gnuplot need to be installed. If image format other than PS, PDF and EPS is required to generate, the convert program of ImageMagick is also needed.

    To plot chart using Chart::Gnuplot, a chart object and at least one dataset object are required. Information about the chart such as output file, chart title, axes labels and so on is specified in the chart object. Dataset object contains information about the dataset to be plotted, including source of the data points, dataset label, color used to plot and more.

    After chart object and dataset object(s) are created, the chart can be plotted using the plot2d, plot3d or multiplot method of the chart object, e.g.

     # $chart is the chart object
     $chart->plot2d($dataSet1, $dataSet2, ...);

    To illustate the features of Chart::Gnuplot, the best way is to show by examples. A lot of examples are provided in the package.

    SYNOPSIS

     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);
     
     ##################################################
     
     # Plot many data sets on a single chart
     $chart->plot2d($dataSet1, $dataSet2, ...);



    Product's homepage

    Requirements:

    · Perl

    What's New in This Release: [ read full changelog ]

    · NEW support drawing arbitrary polygons
    · NEW support alpha value in filling styles and objects for certain terminals
    · NEW chart object method "command" supports executing an array of commands
    · NEW more test cases
    · CHG automatically set "using" of the dataSet object in plotting histogram
    · CHG code refactoring in Chart::Gnuplot::DataSet
    · CHG make private method "_execute()" public
    · CHG update POD
    · FIX data processing of array of points in plotting 3D surface
    · FIX data processing of plotting "hbars"

      


    TAGS:

    plot graphs | Gnuplot plotting | Perl module | Gnuplot | graphs | plotter

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM