egttools.plotting

API reference documentation for the plotting submodule.

Functions

animate_network_evolution

Animate the evolution of a network, colouring nodes by strategy.

draw_invasion_diagram

Draws the markov chain for a given stationary distribution of monomorphic states.

plot_edge_homophily

Plot the evolution of edge homophily over time.

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).

plot_network_state

Draw a network snapshot with nodes coloured by their current strategy.

plot_pairwise_comparison_rule_dynamics_in_simplex

Plot dynamics of a finite population using the pairwise comparison rule on a 2D simplex.

plot_pairwise_comparison_rule_dynamics_in_simplex_without_roots

Plot dynamics on the simplex under the pairwise comparison rule, without computing roots.

plot_parameter_sweep

Plot a 2-D parameter sweep as a heatmap.

plot_replicator_dynamics_in_simplex

Plot the replicator dynamics on a 2D simplex for 3-strategy 2- or N-player games.

plot_strategy_by_degree

Plot the frequency of each strategy stratified by node degree.

plot_strategy_evolution

Plot time-series of strategy frequencies.

Classes

Simplex2D

Plots a 2-dimensional simplex in a cartesian plane.

Simplex3D

3D simplex (tetrahedron) visualisation for 4-strategy evolutionary games.

barplots

helpers

Helper functions for producing plots on simplexes

indicators

Helper function to visualize evolutionary dynamics

network_plots

Network visualisation utilities for EGTtools.

simplex2d

simplex3d

3D simplex (tetrahedron) visualisation using Plotly.

simplified

Simplified plotting functions.