Hi,

I want to print a tree with selected attributes using ete3 in python using a Newick (with NHX annotations) file e.g. :

    (dog[&&NHX:Genes=3:Identical=3:Duplicated=0:Lost=0:Novel=0:Singleton=0], ((mouse2[&&NHX:Genes=19:Identical=19:Duplicated=0:Lost=0:Novel=0:Singleton=0], mouse[&&NHX:Genes=21:Identical=17:Duplicated=4:Lost=0:Novel=0:Singleton=0])mouse_mouse2[&&NHX:Genes=19:Identical=9:Duplicated=0:Lost=1:Novel=10:Singleton=0], human[&&NHX:Genes=9:Identical=9:Duplicated=0:Lost=1:Novel=0:Singleton=0])"human/mouse/mouse2"[&&NHX:Genes=10:Identical=3:Duplicated=0:Lost=0:Novel=7:Singleton=0])LUCA[&&NHX:Genes=3];

I can print an ascii tree like so:

```
    /-dog, 3, 0, 0, 0
   |
-LUCA                                           /-mouse2, 19, 0, 0, 0
   |                              /mouse_mouse2, 9, 0, 1, 0
    \"human/mouse/mouse2", 3, 0, 0, 0           \-mouse, 17, 4, 0, 0
                                  |
                                   \-human, 9, 0, 1, 0
```

Is there a way to do this as a phylogenetic tree image e.g. using the `TreeStyle()` function?

Thanks.
Yes, each graphical feature associated to a node is called a Node Face. You can add any number of faces to each node, and you can control de position of each face relative to its node. Then call the tree.render(...) function to get an image. There are many type of faces and parameters to customize the image, <a href="http://etetoolkit.org/docs/latest/tutorial/tutorial_drawing.html">check this part of the tutorial</a>

A very simple example would like this:

    from ete3 import Tree, TextFace, AttrFace
    tree = Tree("((A, B), C);")
    nodeA = tree & ("A")
    nodeAB = tree.get_common_ancestor("A", "B")
    nodeA.add_face(TextFace("mouse"), column=1, position="branch-right")
    nodeA.add_face(TextFace("/human"), column=2, position="branch-right")
    nodeAB.add_face(TextFace("mouse"), column=0, position="branch-top")
    nodeAB.add_face(TextFace("/mouse"), column=1, position="branch-top")
    nodeAB.add_face(AttrFace("dist", text_prefix="/"), column=2, position="branch-top")
    tree.render("tree.png")