Subject: | x axis doesn't plot correct numeric values |
When setting the X axis to behave as a numeric axis, it may happen that
the X values have an offset, unless a min and a max value are set.
From the code lines, the X axis is set to a numeric axis:
my $graph = GD::Graph::linespoints->new(1280,960);
$graph->set(x_tick_number =>20);
Then, if there are undef values at the beginning and to the end of the Y
values array, the line may be plotted with a offset on the X axis.
The work around is to set the minimum and maximum plot values for the X
axis:
$graph->set(x_min_value => $min_per_to_plot);
$graph->set(x_max_value => $max_per_to_plot);
(I'm using perl 5.10.0 with GDGraph 1.44)