else { # draw main bar face my $centretopy = $ypos + ($dims{plotheight} - (($dims{plotheight}/$dims{range})*$d->[1])) + $floordepth; $image->filledRectangle($barpos,$centretopy,$barpos+$conf{bwidth},$ypos+$dims{plotheight}+$floordepth,$colbar); ### add this line $image->string(gdSmallFont,$barpos,$centretopy-20,$d->[1],$colbar);