krish28 has asked for the wisdom of the Perl Monks concerning the following question:
But its not working and i get this error message when i try to run it:my $graph = new GD::Graph::histogram(4000000,6000000); $graph -> set( x_label => 'Location', y_label => 'Count', title => 'Sample Histogram', x_labels_vertical => 1, bar_spacing => 0, shadow_depth => 1, shadowclr => 'dred', transparent => 0, ) or warn $graph -> error; my $gd = $graph -> plot (\@arrayofinterest) or die $graph->error; open (IMG, '>histo.png') or die $!; binmode IMG; print IMG $gd -> png;
Can anyone help?Not a GD::Image object at /usr/lib/perl5/site_perl/5.8.5/GD/Graph.pm l +ine 180
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: problem using GD::Graph::Histogram
by zwon (Abbot) on Jan 14, 2010 at 22:56 UTC | |
|
Re: problem using GD::Graph::Histogram
by Khen1950fx (Canon) on Jan 15, 2010 at 19:37 UTC | |
by krish28 (Acolyte) on Jan 18, 2010 at 18:18 UTC |