-
Notifications
You must be signed in to change notification settings - Fork 78
Closed as not planned
Labels
Python APIIssue is about the Python APIIssue is about the Python APIVisualisationThis issue addresses visualisationThis issue addresses visualisationenhancementNew feature or requestNew feature or request
Milestone
Description
We're getting some very powerful tools with the new draw_svg() functions, but we're missing a simple way to annotate a tree sequence (like say, node colours) without having to be an SVG/CSS guru.
What if we add a .draw() method to TreeSequence that mirrors the API of Tree.draw()?
I would say we keep most options, except format. Then, the advice is
- Use
draw_textif you want to draw text. - Use
drawif you want SVG output to have quick styling, with some simple options. - Use
draw_svgif you want SVG output with full control
We could then deprecate format="unicode" in Tree.draw()?
petrelharp and hyanwong
Metadata
Metadata
Assignees
Labels
Python APIIssue is about the Python APIIssue is about the Python APIVisualisationThis issue addresses visualisationThis issue addresses visualisationenhancementNew feature or requestNew feature or request