def test(self): # Text faces I = TreeImage() I.mode = "rect" I.aligned_header.add_face(self.headerF, 0) I.aligned_header.add_face(self.headerF, 1) I.aligned_header.add_face(self.headerF, 2) I.aligned_header.add_face(self.headerF, 3) I.aligned_foot.add_face(self.footF, 0) I.aligned_foot.add_face(self.footF, 1) I.aligned_foot.add_face(self.footF, 2) I.aligned_foot.add_face(self.footF, 3) I.draw_aligned_faces_as_grid = True t = Tree() t.dist = 0 t.populate(10) style = NodeStyleDict() style["fgcolor"] = "#ff0000" style["size"] = 20 style.add_fixed_face(self.fixedF, "branch-right", 0) t.img_style = style t.render("./test.svg", layout=mylayout, tree_style=I) t.show(mylayout, tree_style=I) t.show(mylayout2, tree_style=I)