plot_dendrogram#
- biotite.sequence.graphics.plot_dendrogram(axes: Axes, tree: Tree, orientation: Literal['left', 'right', 'bottom', 'top'] = 'left', use_distances: bool = True, labels: list[str] | None = None, label_size: float | None = None, color: str | tuple[float, ...] | ndarray = 'black', show_distance: bool = True, **kwargs: Any) None[source]#
Plot a dendrogram from a (phylogenetic) tree.
- Parameters:
- axesAxes
A Matplotlib axes, that is used as plotting area.
- treeTree
The tree to be visualized.
- orientation{‘left’, ‘right’, ‘bottom’, ‘top’}, optional
The position of the root node in the plot
- use_distancesbool, optional
If true, the distance attribute of the
TreeNodeobjects are used as distance measure. Otherwise the topological distance is used.- labelslist of str, optional
The leaf node labels. The label of a leaf node is the entry at the position of its index attribute.
- label_sizefloat, optional
The font size of the labels.
- colortuple or str, optional
A Matplotlib compatible color, that is used to draw the lines of the dendrogram.
- show_distancebool, optional
If true, the distance from the root is shown on the corresponding axis.
- **kwargs
Additional parameters that are used to draw the dendrogram lines.