egttools.plotting.plot_replicator_dynamics_in_simplex

plot_replicator_dynamics_in_simplex(payoff_matrix=None, game=None, group_size=2, nb_points_simplex=100, nb_of_initial_points_for_root_search=10, atol=1e-07, atol_equal=1e-12, method_find_roots='hybr', atol_stability_pos=0.0001, atol_stability_neg=0.0001, atol_stability_zero=0.0001, figsize=(10, 8), ax=None, stability_mode='int')[source]

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

Return type:

Tuple[Simplex2D, Callable[[ndarray[tuple[int, ...], dtype[float64]], int], ndarray[tuple[int, ...], dtype[float64]]], List[ndarray[tuple[int, ...], dtype[float64]]], List[ndarray[tuple[int, ...], dtype[float64]]], Union[List[int], List[bool]]]

Backward compatibility: - If game is an AbstractGame, the function extracts game.payoffs() and uses the

original matrix-based logic.

  • If game is an AbstractReplicatorGame, the function uses the new game-based replicator logic.