ete icon indicating copy to clipboard operation
ete copied to clipboard

incomplete code block in layout functions tutorial

Open novigit opened this issue 3 years ago • 0 comments

Hi! I was just going over the ete3 tutorial and I believe the code block under 'layout functions' is incomplete.

The import statement does not include to import TreeStyle and TextFace, despite being used later on and the abc_layout function is defined but not used anywhere. Also, n.img_style["color"] is not recognized.

I fiddled around and found these updates to get the code block working again

from ete3 import Tree, TreeStyle, TextFace

node.img_style["fgcolor"] = "red"

and

t.show(tree_style=ts, layout=abc_layout)

Please update this section of the tutorial!

novigit avatar May 28 '21 15:05 novigit