From 410385e68ab3c3d347a895a8208a49099d076377 Mon Sep 17 00:00:00 2001 From: Katy Brown Date: Fri, 12 Apr 2024 13:05:14 +0100 Subject: [PATCH] undid mistake with version --- plot_phylo/_version.py | 2 +- plot_phylo/plot_phylo.py | 14 -------------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/plot_phylo/_version.py b/plot_phylo/_version.py index f1380ee..9cb17e7 100644 --- a/plot_phylo/_version.py +++ b/plot_phylo/_version.py @@ -1 +1 @@ -__version__ = "0.1.7" +__version__ = "0.1.8" diff --git a/plot_phylo/plot_phylo.py b/plot_phylo/plot_phylo.py index e4571a0..526aaa1 100755 --- a/plot_phylo/plot_phylo.py +++ b/plot_phylo/plot_phylo.py @@ -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, @@ -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 @@ -431,8 +429,6 @@ 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', @@ -440,16 +436,6 @@ def draw_tree(tree, ax, 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)