[Bioperl-l] Bio::Graphics::Glyph::triangle
Horvath Tamas
hota.fin at freemail.hu
Mon Apr 18 11:09:50 EDT 2005
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
More information about the Bioperl-l
mailing list