Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Radialplot #112

Merged
merged 16 commits into from
Mar 1, 2017
Prev Previous commit
Next Next commit
FIX: fixing renaming scheme
  • Loading branch information
mortonjt committed Feb 27, 2017
commit 58ab234195ef0ec583eb54391eee966acc7088f0
4 changes: 2 additions & 2 deletions gneiss/plot/_dendrogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ class Dendrogram(TreeNode):
Notes
-----
`length` refers to the branch length connect to the specified subtree.
`leafcount` is the number of tips within a subtree.
`height` refers to the longest path from root to the deepst leaf in that subtree.
`leafcount` is the number of tips within a subtree. `height` refers
to the longest path from root to the deepst leaf in that subtree.
`depth` is the number of nodes found in the longest path.

"""
Expand Down
4 changes: 2 additions & 2 deletions gneiss/plot/_radial.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
'`radialplot` will not be available')


def radialplot(tree, node_hue='node_hue', node_size='node_size',
node_alpha='node_alpha', edge_hue='edge_hue',
def radialplot(tree, node_color='node_color', node_size='node_size',
node_alpha='node_alpha', edge_color='edge_color',
edge_alpha='edge_alpha', edge_width='edge_width',
figsize=(500, 500), **kwargs):
""" Plots unrooted radial tree.
Expand Down
2 changes: 1 addition & 1 deletion gneiss/plot/tests/test_radial.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def test_basic_plot(self):
n.node_size = 10
n.length = np.random.rand()*3
n.edge_width = 2
p = radialplot(t, node_hue='color', edge_hue='edge_color',
p = radialplot(t, node_color='color', edge_color='edge_color',
node_size='node_size', edge_width='edge_width')

self.assertDictEqual(p.renderers[0].data_source.data, exp_edges)
Expand Down