Chemistry::Artificial::Graphics 0.01 review

Download
by rbytes.net on

License: Perl Artistic License
File size: 13K
Developer: Bernat Requesens
0 stars award from rbytes.net

Chemistry::Artificial::Graphics is a graphic plot for artificial with database support.

SYNOPSIS

use strict;
use Chemistry::SQL;
use Chemistry::Artificial::Graphics;

my $dbname = $ARGV[0];
my $chaname = $ARGV[1];
my $file = $ARGV[2];
my $mode = $ARGV[3];

if (scalar(@ARGV)!=4)
{ print "Error in parameter number n";
print "perl chaplot.pl DB_NAME
CHA_NAME FILE_NAME MODE (svg | svg_static | text)n";
exit;
}
my $db1 =
Chemistry::SQL->new(db_host=>"127.0.0.1",db_user=>"root",db_port=>"3306",sb_pwd=>"",db_name=>"$dbname",db_driver=>"mysql");
$db1->connect_db;
my $pcha = Chemistry::Artificial::Graphics->new(db => $db1, width=> "800",height=>"600",radius=> "10",distanceh=>"200",file=> $file,
mode=> $mode);
$pcha->ch_plot("$chaname");

This package, along with Chemistry::SQL, includes all the necessary to generate graphics of the artificial chemistry in database.

Chemistry::Artificial::Graphics 0.01 search tags