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

Scott Cain cain at cshl.edu
Mon Apr 18 10:38:51 EDT 2005


I'm not sure what your ascii graphics are trying to represent.  To me,
it looks like you want a segments glyph and then specify the stranded
nest to point either E or W.  That would produce a rectangle with a
triangle on the end.


On Mon, 2005-04-18 at 17:09 +0200, 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
Scott Cain, Ph. D.                                         cain at cshl.org
GMOD Coordinator (http://www.gmod.org/)                     216-392-3087
Cold Spring Harbor Laboratory

More information about the Bioperl-l mailing list