We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2210361 commit e8e40eeCopy full SHA for e8e40ee
python/tskit/trees.py
@@ -1889,7 +1889,8 @@ def draw_svg(
1889
0.3.6)
1890
:param node_labels: If specified, show custom labels for the nodes
1891
(specified by ID) that are present in this map; any nodes not present will
1892
- not have a label.
+ not have a label. To use a metadata key, for example, use
1893
+ ``node_labels={node.id: node.metadata["key"] for node in ts.nodes()}``.
1894
:type node_labels: dict(int, str)
1895
:param mutation_labels: If specified, show custom labels for the
1896
mutations (specified by ID) that are present in the map; any mutations
0 commit comments