Skip to content

Commit

Permalink
release 3.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jhcepas committed Aug 30, 2020
1 parent 664cc85 commit 97e0ce9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1.2
3.1.2
11 changes: 6 additions & 5 deletions ete3/treeview/layouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,14 @@

def basic(node):
if node.is_leaf():
#node.img_style["size"]=1
#node.img_style["shape"] = "circle"
node.img_style["size"]=2
node.img_style["shape"] = "square"
faces.add_face_to_node(faces.AttrFace("name","Arial",10,"#4f8f0f",None), node, 0 )

def phylogeny(node):
leaf_color = "#000000"
node.img_style["shape"] = "circle"
node.img_style["shape"] = "square"
node.img_style["size"] = 2
if hasattr(node,"evoltype"):
if node.evoltype == 'D':
node.img_style["fgcolor"] = "#FF0000"
Expand All @@ -71,14 +72,14 @@ def phylogeny(node):

if node.is_leaf():
node.img_style["shape"] = "square"
node.img_style["size"] = 4
node.img_style["size"] = 2
node.img_style["fgcolor"] = leaf_color
faces.add_face_to_node( faces.AttrFace("name","Arial",11,leaf_color,None), node, 0 )
if hasattr(node,"sequence"):
SequenceFace = faces.SequenceFace(node.sequence,"aa",13)
faces.add_face_to_node(SequenceFace, node, 1, aligned=True)
else:
node.img_style["size"] = 6
node.img_style["size"] = 2

def heatmap(node):
square_size = 10
Expand Down

0 comments on commit 97e0ce9

Please sign in to comment.