Skip to content

Commit

Permalink
undid mistake with version
Browse files Browse the repository at this point in the history
  • Loading branch information
KatyBrown committed Apr 12, 2024
1 parent 898ccda commit 410385e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
2 changes: 1 addition & 1 deletion plot_phylo/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.1.7"
__version__ = "0.1.8"
14 changes: 0 additions & 14 deletions plot_phylo/plot_phylo.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ def plot_phylo(tree, ax,
height=10,
show_axis=False,
show_support=True,
show_node_labels=False,
align_tips=False,
rev_align_tips=False,
branch_lengths=True,
Expand Down Expand Up @@ -122,7 +121,6 @@ def plot_phylo(tree, ax,
'col_dict': col_dict,
'label_dict': label_dict,
'show_support': show_support,
'show_node_labels': show_node_labels,
'bold': bold}

# Calculate the total height and width of the original tree
Expand Down Expand Up @@ -431,25 +429,13 @@ def draw_tree(tree, ax,
# Add branch support if specified
# TODO - currently lands on top of the branches if branch_lengths
# is switched on
# addrows parameter moves the branch labels down a little
# if the node labels are also shown
if appearance['show_support']:
if not reverse:
ax.text(x, -ym, " %.2f" % tree.support, ha='left',
va='center', fontsize=appearance['font_size']-2)
else:
ax.text(x, -ym, "%.2f " % tree.support, ha='right',
va='center', fontsize=appearance['font_size']-2)
addrows = "\n\n"
else:
addrows = ""
if appearance['show_node_labels']:
if not reverse:
ax.text(x, -ym, "%s %s" % (addrows, tree.name), ha='left',
va='center', fontsize=appearance['font_size']-2)
else:
ax.text(x, -ym, "%s %s" % (addrows, tree.name), ha='right',
va='center', fontsize=appearance['font_size']-2)

return (y, ym, ps)

Expand Down

0 comments on commit 410385e

Please sign in to comment.