[Bioperl-l] Bio::Graphics::Glyph::triangle

Lincoln Stein lstein at cshl.edu
Mon May 23 13:08:23 EDT 2005


Hota,

I have changed $p to $q*2 in CVS.  I didn't check that this works as 
advertised, so please let me know if this is correct.

Lincoln


On Monday 18 April 2005 11:09 am, Horvath Tamas wrote:
> I have some problems with the triangle glyph. When I don't specify any
> orientation to the glyph, it stretches nicely. However, if I do specify,
> it only drows isoceles triangles. (with E or W orientation).  Can I
> overcome this problem?
>
> Hota
>
> Actually, I found the problem:
> the original codein the 'sub draw_component':
>
> elsif($orient eq
> 'W'){$vx1=$x2;$vy1=$y1;$vx2=$x2;$vy2=$y2;$vx3=$x2-$p;$vy3=$ymid;}
>    elsif($orient eq
> 'E'){$vx1=$x1;$vy1=$y1;$vx2=$x1;$vy2=$y2;$vx3=$x1+$p;$vy3=$ymid;}
>
> the $p has to be changed to ($q*2)
>
> Then it creates nicely stretched triangles. However, it might be more
> convenient to use an  other type of glyph, like:
>
>
>
> but I don't know how to create it. Do we have this kind of glyph?
>
> Hota
>
>
>
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l at portal.open-bio.org
> http://portal.open-bio.org/mailman/listinfo/bioperl-l

-- 
Lincoln D. Stein
Cold Spring Harbor Laboratory
1 Bungtown Road
Cold Spring Harbor, NY 11724


More information about the Bioperl-l mailing list