Scale bar#

This example shows how to add a scale bar to an iplotx tree.

plot scalebar
<iplotx.tree.scalebar.TreeScalebarArtist object at 0x7dd1a51d3770>

from dendropy import Tree
import iplotx as ipx

tree = Tree.get(data="((,(,((,),(,)))));", schema="newick")

tree_artist = ipx.plotting.tree(
    tree,
    edge_color="grey",
)
tree_artist.scalebar(
    loc="upper left",
)

Total running time of the script: (0 minutes 0.035 seconds)

Gallery generated by Sphinx-Gallery