egttools.plotting.plot_strategy_evolution¶
- plot_strategy_evolution(trajectory, strategy_names=None, strategy_colors=None, ax=None, xlabel='Generation', ylabel='Strategy frequency', title='')[source]¶
Plot time-series of strategy frequencies.
- Parameters:
trajectory (numpy.ndarray, shape (T, nb_strategies)) – Output from
NetworkMCEstimator.run(); rows are generations, columns are strategy counts. Counts are normalised internally to frequencies in [0, 1].strategy_names (sequence of str, optional)
strategy_colors (sequence, optional)
ax (matplotlib.axes.Axes, optional)
- Return type:
matplotlib.axes.Axes