egttools.plotting.plot_gradients

plot_gradients(gradients, fig_title=None, xlabel='frequency of strategy 0', ylabel='gradient of selection (G)', figsize=(7, 5), color='b', linelabel=None, linewidth_gradient=3, marker=None, marker_plot_freq=1, marker_linewidth=3, marker_size=20, marker_facecolor='b', marker_edgecolor='b', roots=None, stability=None, linewidth_edges=3, edgecolors='black', nodesize=100, nodeborder_width=3, arrowstyle='-|>', nb_minor_ticks=2, major_ticks_length=7, minor_ticks_length=4, ticks_width=2, ticks_labels_size=15, ticks_direction='in', ticks_labels_pad=10, ticks_labels_fontweight='bold', axis_labels_fontweight='bold', axis_labels_fontsize=15, ticks_left=True, ticks_right=True, ticks_top=True, ticks_bottom=True, spine_left_linewidth=2, spine_right_linewidth=2, spine_top_linewidth=2, spine_bottom_linewidth=2, ax=None, cmap=None)[source]

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

There is the possibility of plotting the stationary points (roots) of the system and their stability, but it is recommended that you only do this when analysing the replicator equation.

Parameters:
Return type:

axis

Returns:

  • matplotlib.pyplot.axis

  • The axis in which the figure has been plot.