I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2007-12-13 13:58:05-08 by eleysanne
drawing larger trees
Hi Everyone,

I tried drawing a large tree the other day (~500 sequences) and the svg image came out to be very scrambled an unreadable. Increasing the width and height of the image mainly seemed to stretch it out.

Is there another way I could make my image bigger and get readable node descriptions?

Or is there a limit to the size of a tree?

Thanks in advance,
eleysanne
Direct Responses: 6684 | Write a response
Posted on 2007-12-13 16:05:34-08 by eleysanne in response to 6681
Re: drawing larger trees
Just for fun, I changed the image size to 8000x8000, and it did produce a pretty tree.

So my next question would be about the font size of the node descriptions. Is it a fixed font size, or is it changeable?
If I could reduce the font size to 8 or 9, the tree should still be readable, but I could reduce the image size (because 8000x8000 is not feasible for a web page)

Any comments are appreciated!

Thanks,
eleysanne
Direct Responses: 6933 | Write a response
Posted on 2008-01-25 20:58:38-08 by rvosa in response to 6684
Re: drawing larger trees
Dear Eleysanne,

my apologies for the late reply. Any additional style (font-family, font-size, font-weight, color, etc.) can be applied as per the documentation for Bio::Phylo::Treedrawer::Svg. Basically, what you do is iterate in this case over all nodes, and for each node add
$node->set_generic( 'svg' => { 'font-size' => '9px' } )
In other words, add a key called 'svg' and a value consisting of a hash reference where the keys are standard CSS properties and the values are standard CSS values.

Hope this helps,

Rutger
Direct Responses: Write a response