Hello everyone,

I've got a quick question about using the logo_resize option in the
GD::Graph package.

My code is:

use GD::Graph::bars;
use CGI qw(:standard);

  @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) ]
  );

  $graph = GD::Graph::bars->new(400, 300);

  $graph->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,
      logo              =>
'/home/motorola/local/apache/graphic/motorola.png',
      logo_resize       => '1.0'
  );

my $format = $graph->export_format;
print header("image/$format");
binmode STDOUT;
print $graph->plot(\@data)->$format();

Everything works fine, and the logo is it's normal size.  What I'd like
to do is make it a little smaller, but putting a negative value causes
the logo not to show.  

Here's what the documentation has to say about it:

logo_resize, logo_position
Factor to resize the logo by, and the position on the canvas of the
logo. Possible values for logo_position are 'LL', 'LR', 'UL', and 'UR'.
(lower and upper left and right). Default: 'LR'.

I'm not sure what "Factor" to put in the logo_resize value.

All searches on Google and several perl list archives have turned up
only the fact that I might need to use a floating point value.

Any help is appreciated,
Kevin



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to