Nevermind, it happens without two_axes too:
#!/usr/bin/perl
use strict;
use warnings;
use GD::Graph::bars;
my $my_graph = GD::Graph::bars->new;
$my_graph->set(
show_values => 1,
) or warn $my_graph->error;
$my_graph->plot( [['foo'],[99]] ) or die $my_graph->error;
my $ext = $my_graph->export_format;
open OUT, '>', "test2.$ext" or die "Cannot open for write: $!";
binmode OUT;
print OUT $my_graph->gd->$ext;
close OUT;
On Tue Jul 27 21:54:41 2010, justincase wrote:
Show quoted text> In the example below, two_axes is on, show_values is on, there are two
> datasets (one on each axis), and one of the bars (99) extends close to
> the top tickmark for its axis (100). Instead of extending the range so
> that the value can fit nicely in the graph area, the value for the bar
> partially goes off the top edge of the graph. In fact, if you change the
> 99 to 100, the bar simply goes all the way to the top, and you can't
> even see any piece of its value.
>
> This problem does not occur when using one-axis mode, even though having
> an additional dummy axis should not, in principle, affect the first axis.
>
> use GD::Graph::bars;
> my $my_graph = GD::Graph::bars->new;
> $my_graph->set(
> two_axes => 1,
> show_values => 1,
> ) or warn $my_graph->error;
> $my_graph->plot( [['foo'],[99],[0]] ) or die $my_graph->error;
> my $ext = $my_graph->export_format;
> open OUT, '>', "test2.$ext" or die "Cannot open for write: $!";
> binmode OUT;
> print OUT $my_graph->gd->$ext;
> close OUT;