[Bioperl-l] GD::SVG

hz5 at njit.edu hz5 at njit.edu
Mon Mar 8 17:48:57 EST 2004


Dear friends,

I've successfully rendered multiple panels into png image using GD module and 
bioperl panel object. Now I am trying to make the picture quality higher. So I 
tried to use GD::SVG like this:

        my $panel = Bio::Graphics::Panel->new(
                                      #-segment    => $whole_seq,
                                      -start      => $s-1000,
                                      -end        => $t+1000,
                                      #-grid       => 'true',
                                      -key_style  => 'bottom',
                                      -key_font => GD::Font->Large(),
                                      -width      => $width,
                                      -pad_left   => 10,
                                      -pad_right  => 10,
                                      -pad_bottom => 10,
                                      -image_class=> 'GD::SVG',
                                      -spacing    => 1*$ratio,
                                     );

          ......

        open (OUT, ">my.svg");
        binmode OUT;
        print OUT $panel->svg();

Now I get the following message:
Can't locate object method "formatting" via package "GD::Font" (perhaps you 
forgot to load "GD::Font"?) at /usr/lib/perl5/site_perl/5.6.1/GD/SVG.pm line 
702, <DATA> line 191.

don't know why, thanks in advance for your help!
haibo


More information about the Bioperl-l mailing list