Styled publication of NeXML/NeXSON trees
This is a proof-of-concept implementation, applying TSS styles to the existing tree-visualization features of ETE.
easy_install pip
pip install tinycss
python pstastic.py examples/met1.xml default.nexss
Not surprisingly, ETE doesn't support all of the styles and manipulations we would like.
tree {tip-orientation: left;}
tree.upward {tip-orientation: top;}
We apparently can't rotate trees cleanly in ETE. That is, the entire diagram is rotated, so labels appear sideways or upside-down. There's no provision for legibility or spacing, so this is effectively useless.
figure {
background-color: white;
width: 500px;
height: 500px;
}
Sadly, None of these seem to be available through ETE's TreeStyle
. It seems to reckon width and height based on the tree and scale.