tskit-dev / msprime

Simulate genealogical trees and genomic sequence data using population genetic models
GNU General Public License v3.0
173 stars 85 forks source link

draw_pedigree documentation #2211

Closed daikitag closed 11 months ago

daikitag commented 11 months ago

I find the pedigree documentation to be extremely helpful, but nx and plt can be confusing here, as they are not imported inside the documentation page https://github.com/tskit-dev/msprime/blob/main/docs/pedigrees.md?plain=1#L329. Would it be possible for you to add from matplotlib import pyplot as plt and import networkx as nx in that code example?

jeromekelleher commented 11 months ago

Sure - PR welcome @daikitag!

daikitag commented 11 months ago

I opened up a PR in https://github.com/tskit-dev/msprime/pull/2214

GertjanBisschop commented 11 months ago

Solved in #2214.