Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have basically copied code from the cpan web-site for this module but I can't get it to work but I don't get errors either. Can anyone spot the problem? Thanks!
#!/biol/programs/perl580/bin/perl use DBD::Chart::Plot; my $img = DBD::Chart::Plot->new(); my @k = ('1','1','3','5'); my @h = ('0.1','0.5','0.4','0.9'); $img->setPoints(\@k, \@h, 'blue line nopoints'); $img->setOptions ( title => 'My Graph Title', xAxisLabel => 'my X label', yAxisLabel => 'my Y label' ); print $img->plot; open (WR,'>plot3.png') or die ("Failed to write file: $!"); binmode WR; # for DOSish platforms print WR $img->plot(); close WR;
Formatting repaired by davido
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBD::Chart::Plot ??
by itub (Priest) on Jan 24, 2005 at 16:52 UTC | |
by Anonymous Monk on Jan 24, 2005 at 17:57 UTC | |
|
Re: DBD::Chart::Plot ??
by CountZero (Bishop) on Jan 24, 2005 at 15:27 UTC | |
|
Re: DBD::Chart::Plot ??
by holli (Abbot) on Jan 24, 2005 at 15:21 UTC |