in reply to Re: Help With GD::Graph::lines
in thread Help With GD::Graph::lines
sorry, I meant to use <br> new line and not <b> for bold
This is th code I am using:
use GD::Graph::lines; @data = ( "1st","2nd","3rd","4th","5th","6th","7th", "8th", "9th", 1, 2, 5, 6, 3, 1.5, 1, 3, 4, sort { $a <=> $b } (1, 2, 5, 6, 3, 1.5, 1, 3, 4) ); my $graph = GD::Graph::lines->new(400,400); $graph->set ( x_label => 'values1', y_label => 'values2', title => 'Correlate', ) or die $my_graph->error; my $gd = $graph->plot(\@data) or die $my_graph->error; open (IMG, '>file.png') or die $!; binmode IMG; print IMG $gd->png;
The line always start at 1st but I need it to start drawing at the origin. Any help would be appreciated. Thanks.
Code tags added by GrandFather
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Help With GD::Graph::lines
by BrowserUk (Patriarch) on Aug 01, 2007 at 05:08 UTC | |
by Anonymous Monk on Aug 01, 2007 at 05:34 UTC | |
|
Re^3: Help With GD::Graph::lines
by GertMT (Hermit) on Aug 01, 2007 at 05:21 UTC | |
by Anonymous Monk on Aug 01, 2007 at 06:45 UTC |