in reply to Re^2: GD::GRAPH:linespoints problem
in thread GD::GRAPH:linespoints problem
Not that it makes any difference; as I suggested before the bug is in YOUR code, not in whatever I make up.use strict; use warnings; use GD::Graph::linespoints; my $i = 0; while (<>) { my $g = GD::Graph::linespoints->new(100,100); $g->set( x_label => 'X Label', y_label => 'Y label', title => 'Some simple graph', y_max_value => 8, y_tick_number => 8, y_label_skip => 2 ) or die $g->error; my @line = split / /; open F,">plot$i.png" or die $!; binmode F; my $img = $g->plot( [[ 1, 2, 3, 4], \@line] ) or die $g->error; print F $img->png; $i++ }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: GD::GRAPH:linespoints problem
by v_d_g (Initiate) on Mar 03, 2007 at 09:03 UTC | |
by quester (Vicar) on Mar 04, 2007 at 06:48 UTC |