Chart::Scientific

Chart::Scientific is a Perl module that can generate simple 2-D scientific plots with logging, errbars, etc.
Download

Chart::Scientific Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Kester Allen
  • Publisher web site:
  • http://search.cpan.org/~kester/Chart-Scientific-0.16/lib/Chart/Scientific.pm

Chart::Scientific Tags


Chart::Scientific Description

Chart::Scientific is a Perl module that can generate simple 2-D scientific plots with logging, errbars, etc. Chart::Scientific is a Perl module that can generate simple 2-D scientific plots with logging, errbars, etc.SYNOPSISProcedural interface use Chart::Scientific qw/make_plot/; make_plot ( x_data => @x_values, y_data => @yvalues );The subroutine make_plot creates a Chart::Scientific object passing along every argument it was given. See OPTIONS below for a full list of allowed arguments.Object Oriented interfacePlot data from two arrays: use Chart::Scientific; my $plt = Chart::Scientific->new ( x_data => @x_values, y_data => @y_values, ); $plt->plot ();or piddles: use Chart::Scientific; my $plt = Chart::Scientific->new ( x_data => $x_pdl, y_data => $y_pdl, ); $plt->plot ();Plot data from an arbitrarily-delimitted file (the data in columns "vel" and "acc" vs the data in the column "time", with errorbars from the columns "vel_err" and "acc_err"): my $plt = Chart::Scientific->new ( filename => 'data.tab-separated', split => 't', x_col => 'time', y_col => 'vel,acc', err_col => 'vel_err,acc_err', x_label => "time", y_label => "velocity and acceleration", ); $plt->plot ();Plot data in arrays: my $plt = Chart::Scientific->new ( x_data => @height, y_data => , ); $plt->plot ();Plot data in pdls: my $plt = Chart::Scientific->new ( x_data => $pdl_x, y_data => , ); $plt->plot ();Plot the above data to a file: my $plt = Chart::Scientific->new ( x_data => $pdl_x, y_data => , device => 'myplot.ps/cps', ); $plt->plot ();Generate multiple plots with the same object: my @x1 = 10..19; my @y1 = 20..29; my @y2 = 50..59; my $plt = Chart::Scientific->new ( x_data => @x1, y_data => @y1, x_label => "test x", y_label => "test y", ); $plt->setvars ( title => 'testa', device => '1/xs' ); $plt->plot (); $plt->setvars ( title => 'testb', device => '2/xs' ); $plt->plot (); Requirements: · Perl


Chart::Scientific Related Software