Home > Science > Biology > Genetics > Population Genetics > Heterozygosity > Figure 2


TeX source code:

\documentclass[border={2pt 2pt 2pt 2pt}]{standalone}
\usepackage{tikz}

% convert to png with
% pdftoppm -png -r 150 out.pdf > out.png

\begin{document}

\begin{tikzpicture} 
  \draw[gray, very thick, fill=gray] (1,2) circle [radius=0.25];
  \draw[gray, very thick] (2,2) circle [radius=0.25];
  \draw[gray, very thick, fill=darkgray] (3,2) circle [radius=0.25];
  \draw[gray, very thick, fill=gray] (4,2) circle [radius=0.25];
  \draw[gray, very thick, fill=lightgray] (5,2) circle [radius=0.25];
  \draw[black, very thick] (6,2) circle [radius=0.25];
  \draw[gray, very thick, fill=lightgray] (7,2) circle [radius=0.25];
  \draw[gray, very thick] (8,2) circle [radius=0.25];
  \draw[gray, very thick, fill=gray] (9,2) circle [radius=0.25];
  \draw[gray, very thick] (10,2) circle [radius=0.25];

\draw[->, thick] (5.6,1.5) -- (4.4,0.5);
\draw[->, thick] (6.25,1.5) -- (6.75,0.5);
\path (7.4,1.3) node(x) {coalescence};

  \draw[gray, very thick] (1,0) circle [radius=0.25];
  \draw[gray, very thick, fill=gray] (2,0) circle [radius=0.25];
  \draw[gray, very thick] (3,0) circle [radius=0.25];
  \draw[black, very thick] (4,0) circle [radius=0.25];
  \draw[gray, very thick] (5,0) circle [radius=0.25];
  \draw[gray, very thick, fill=gray] (6,0) circle [radius=0.25];
  \draw[black, very thick] (7,0) circle [radius=0.25];
  \draw[gray, very thick, fill=gray] (8,0) circle [radius=0.25];
  \draw[gray, very thick, fill=lightgray] (9,0) circle [radius=0.25];
  \draw[gray, very thick] (10,0) circle [radius=0.25];
\end{tikzpicture}

\end{document}

Floyd A. Reed, December 5, 2020

AboutContactPrivacy