[Bioperl-l] Bio::Graphic::Panel backgroud color

Jelena Obradovic jelenaob at gmail.com
Thu Jun 1 15:45:49 UTC 2006


Thanks Lincoln.

I figure out the solution just after I post a question, Murpfy's law ... but
my post left hanging in my email ... :(

The problem is in CGI->img method.

Instead of  print $cgi->img({-src=>$url,-usemap=>"#$mapname"});

I should have used: rint $cgi->img({-src=>$url,-usemap=>"#$mapname",
-border=>undef});

Thanks anyways for your help.

Cheers,

Jelena

On 6/1/06, Lincoln Stein <lstein at cshl.edu> wrote:
>
> Hi,
>
> The border is coming from the HTML <img. To get rid of it, set -border=>0
> in
> the img() call.
>
> Lincoln
>
>
>
> On Tuesday 30 May 2006 00:58, Jelena Obradovic wrote:
> > Hello everybody,
> >
> > does anybody know how to remove the background color of the Panel.
> > Currently, I am not adding anything to it, so I can troubleshot the
> > problem, and I have tried setting up
> > all color attributes I could find to the panel, but no luck. Whatever I
> do,
> > I get the BLUE border of the panel.
> >
> > Has anybody faced the same problem?
> >
> > Thanks in advance,
> >
> > Jelena
> >
> > And here is the code I am currently using:
> >
> >
> ---------------------------------------------------------------------------
> >-------------------------------- my $panel =
> >     Bio::Graphics::Panel->new(-length => $prim_seq->length() + 200,
> >                               -width => 800,
> >                               -pad_left => 10,
> >                               -pad_right => 10,
> >                               -key_color => 'white',
> >                               -bgcolor => 'white',
> >                               -gridcolor=>'black',
> >                               -fgcolor => 'black',
> >                               -grid => 0,
> >                               );
> >    my ($url,$map,$mapname) = $panel->image_and_map( #-root=>'$root_url'
> ,
> >      -url  => '/tmpimages');
> >    #make clickable image
> >    print $cgi->img({-src=>$url,-usemap=>"#$mapname"});
> >    print $map;
> >
> >
> ---------------------------------------------------------------------------
> >--------------------------------
> > _______________________________________________
> > Bioperl-l mailing list
> > Bioperl-l at lists.open-bio.org
> > http://lists.open-bio.org/mailman/listinfo/bioperl-l
>
> --
> Lincoln D. Stein
> Cold Spring Harbor Laboratory
> 1 Bungtown Road
> Cold Spring Harbor, NY 11724
> (516) 367-8380 (voice)
> (516) 367-8389 (fax)
> FOR URGENT MESSAGES & SCHEDULING,
> PLEASE CONTACT MY ASSISTANT,
> SANDRA MICHELSEN, AT michelse at cshl.edu
>



More information about the Bioperl-l mailing list