egttools.plotting.indicators

Helper function to visualize evolutionary dynamics

Module attributes

INVASION_DIAGRAM_STYLES

Named presets for draw_invasion_diagram() (style=).

Functions

draw_invasion_diagram

Draws an invasion diagram from a graph built with invasion_graph().

invasion_graph

Builds the invasion graph of the small-mutation limit.

plot_gradient

Creates a figure plotting the gradient of selection together with the saddle points, and the gradient arrows.

plot_gradients

This function plots the gradient of selection for 1-simplexes (only two strategies).

Classes

AutoMinorLocator

Place evenly spaced minor ticks, with the step size and maximum number of ticks chosen automatically.

LineCollection

Represents a sequence of .Line2Ds that should be drawn together.