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?
I find the pedigree documentation to be extremely helpful, but
nx
andplt
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 addfrom matplotlib import pyplot as plt
andimport networkx as nx
in that code example?