You will need to use faces and layouts to customize your view. There are plenty of examples in the tutorial, but something like this should work:
from ete2 import Tree, faces, AttrFace, TreeStyle
def my_layout(node):
# Add name label to all nodes
faces.add_face_to_node(AttrFace("name"), node, column=0, position="branch-right")
ts = TreeStyle()
ts.show_leaf_name = False
ts.layout_fn = my_layout
t = Tree("((B,(E,(A,G)M1_t1)M_1_t2)M2_t3,(C,D)M2_t1)M2_t2;", format=8)
t.show(tree_style=ts)
Jaime
=====================================
Jaime Huerta-Cepas, Ph.D.
Comparative Genomics Group
Bioinformatics and Genomics Programme
CRG-Centre for Genomic Regulation C/ Dr. Aiguader, 88. PRBB Building.
08003 Barcelona, Spain
Tel.
+34 93 316 02 82
http://gabaldonlab.crg.es=====================================