使用Origin画出复杂网络博弈中合作率时间演化图(学术论文)

来源:互联网 发布:知乎图片大小 编辑:程序博客网 时间:2024/06/10 20:30

此图知识背景是囚徒困境下,取固定的背叛引诱值b,然后观察10万步的合作率演化图

这里写图片描述

以下是图的说明:

Fig. 4. (Color online) Fraction of cooperators ( ρC ( t )) within the population at each time step under the self interaction mechanism in the PDG. The simulation results are obtained in the von Neumann neighborhood, the system size is set to be 200 ×200, MCS=100,000 and K = 0.1 . In the top panel (a), b is equal to 1.1; while for the bottom panel (b), b is set to be 1.05.

记录下每个时间步骤下的合作率,如下例所示:

0    0.496051    0.357232    0.217133    0.179184    0.150025    0.12956    0.11295....99999   0

第一列表示的是程序运行的步数,在计算机仿真中,称它为蒙特卡洛仿真步骤(MCS),第二列表示当时群体中的合作者比例,也就是合作率。
但是,不难发现,在这十万步中,从第0步到第一步这种变化无法在图中详细表现出来,所以需要将第0至1步进行再划分,在实验中,我是将0-1步再划分为4000小步,并将0-1步的步骤与合作率加入到原先的文件中:

0   0.496172.5E-4  0.496125E-4    0.49617.5E-4  0.49605....0.99975 0.35741   0.35723....103999   0

值得注意的是,此时的x轴坐标需要选取对数坐标:

这里写图片描述

其余的并没有其它特殊,参考:http://blog.csdn.net/dingchenxixi/article/details/54016748

0 0