You have to check for errors occuring during graph-creation:
should bemy $gd_image = $graph->plot(\@data);
If an error occures, $gd_image will be undefined, resulting in the error you experience.my $gd_image = $graph->plot(\@data) or die $graph->error;
die according to the GD::Graph-docs and you will probably be told were the error lies...
regards,
tomte
Hlade's Law:
If you have a difficult task, give it to a lazy person --
they will find an easier way to do it.
In reply to Re: save a png image
by Tomte
in thread save a png image
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |