Plotting functions

Plotting functions for variant call data.

Pairwise distance

allel.plot.pairwise_distance(dist, labels=None, colorbar=True, ax=None, imshow_kwargs=None)[source]

Plot a pairwise distance matrix.

Parameters:

dist : array_like

The distance matrix in condensed form.

labels : sequence of strings, optional

Sample labels for the axes.

colorbar : bool, optional

If True, add a colorbar to the current figure.

ax : axes, optional

The axes on which to draw. If not provided, a new figure will be created.

imshow_kwargs : dict-like, optional

Additional keyword arguments passed through to matplotlib.pyplot.imshow().

Returns:

ax : axes

The axes on which the plot was drawn