ivy.vis.bokehtree module

Viewer for trees using Bokeh

class ivy.vis.bokehtree.BokehTree(root, scaled=True, nodelabels=True, tiplabels=True, showplot=True, hover=False)[source]

Bases: object

connectors()[source]

This method draws branches between nodes

drawlabels()[source]

This method draws labels for tips and internal nodes

drawtree(showplot=True)[source]

This method sets the output file and creates the figure

highlight(x=None, color=u'red', width=3)[source]

Highlight selected clade(s)

Parameters:x

A str or list of strs or node or list of nodes. color (str): The color of the highlighted nodes. Optional,

defaults to red
width (int): The width of the highlighted branches. Optional,
defaults to 3.
layout()[source]

This method calculates the coordinates of the nodes

makehovertool()[source]
set_root(root)[source]

This method sets root, leaves, and nleaves. Detects if tree is scaled or not.