Chart::Gnuplot

Plot graph using Gnuplot on the fly
Download

Chart::Gnuplot Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Ka-Wai Mak
  • Publisher web site:
  • http://search.cpan.org/~kwmak/

Chart::Gnuplot Tags


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, ...); Requirements: · Perl


Chart::Gnuplot Related Software