PhyloTree.draw#
missionbio.plotting.phylotree.PhyloTree.draw
- PhyloTree.draw(palette: Optional[dict] = None, fig: Optional[Figure] = None, row: Optional[int] = None, col: Optional[int] = None) Figure #
Create and draw the subclone tree graph.
- Parameters:
- palette: dict
Dictionary mapping the subclone name to the color.
- fig: plotly.graph_objs.figure
Plot figure object. If the width and height are not set then they will be modified to fit the tree. However, it assumes that the tree is the only subplot, therefore modifying them after adding calling graph.draw might be required. The minimum width and height to fit the tree alone can be obtained using graph.expected_fig_size. If the width and height both are already set then they are not modified.
- row: int
Row position if fig is specified.
- col: int
Col position if fig is specified.
- Returns:
- figplotly.graph_objs.figure
< Class PhyloTree