egttools.plotting.simplex2d

Functions

add_arrow

add an arrow to a line.

barycentric_to_xy_coordinates

Transforms barycentric into cartesian coordinates.

calculate_nb_states

Calculates the number of possible states in a discrete simplex.

find_where_point_is_in_simplex

Finds in which part of the 2D simplex the point is.

odeint

Integrate a system of ordinary differential equations.

perturb_state

Produces a number of points in the simplex close to the state.

perturb_state_discrete

Produces a number of points in the simplex close to the state.

sample_simplex

Converts a state index into a group composition vector.

sample_unit_simplex

Samples a continuous strategy composition uniformly at random from the unit simplex.

xy_to_barycentric_coordinates

Transforms cartesian into barycentric coordinates.

Classes

Circle

A circle patch.

Simplex2D

Plots a 2-dimensional simplex in a cartesian plane.

TypeVar

Type variable.