lgca.plots

Utilities for plotting properties and outputs of all LGCA types.

Classes

IdentityColourMapper(cmap, children_nlist, ...)

Maps from the family ID to a matplotlib colour that encodes the family identity.

PropertyColourMapper(prop_list, cmap, norm)

Maps from the family ID to a matplotlib colour that encodes the value of a family property, e.g. the birth rate.

Functions

clip_frequencies(y)

Clip a frequency trace to the non-zero span used by Muller plots.

cmap_discretize(cmap, N)

Downsample the near-continuous colormap cmap to the number of colors N.

colorbar_index(ncolors, cmap[, ...])

Create a colorbar with ncolors colors.

draw_wedges(ax, family, cum_pop_t, ...[, ...])

Plot a Muller plot on ax along a timeline grid starting from one family.

estimate_figsize(array[, x, cbar, dy])

get_cmap(density[, ax, vmax, cmap, cbar, ...])

muller_plot(root_ID, cum_pop_t, ...[, ...])

Draw a Muller plot from family-tree population data.