Skip to content

Commit 04d2f29

Browse files
Merge pull request #272 from hyanwong/simplify-keep-nodes-viz
Add a note about filter_nodes=False for viz
2 parents 0e681b8 + 5148546 commit 04d2f29

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

viz.md

+8
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ ts_tiny.draw_svg(size=svg_size, y_axis=True)
188188
One way to avoid overlapping labels on the Y axis is to use the `y_ticks` parameter,
189189
which will be used in most subsequent examples in this tutorial.
190190

191+
(sec_tskit_viz_larger_tree_sequences)=
192+
191193
### Larger tree sequences
192194

193195
So far, we have plotted only very small tree sequences. To visualize larger tree
@@ -240,6 +242,12 @@ ts_full.first().draw_svg(
240242
)
241243
```
242244

245+
For even larger numbers of samples, you can plot the trees for a subset of samples
246+
by applying the {meth}`TreeSequence.simplify` method (make sure to specify
247+
`filter_nodes=False` to retain the same node IDs). For a fancier solution, see
248+
{ref}`sec_tskit_viz_SVG_examples_larger_plots` below.
249+
250+
243251
### Plotting mutations
244252

245253
By default the SVG visualization also plots sites and mutations on the tree or

0 commit comments

Comments
 (0)