in reply to save a png image
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: save a png image
by Anonymous Monk on Mar 09, 2004 at 16:28 UTC | |
by Anonymous Monk on Mar 09, 2004 at 19:00 UTC |