def show_results(self):
pl.plot(self.t, self.n_A, 'b--', label='Number of Nuclei A')
pl.plot(self.t, self.n_B, 'b', label='Number of Nuclei B')
pl.plot(self.t, self.n_A_true, 'g--', label='True Number of Nuclei A')
pl.plot(self.t, self.n_B_true, 'g', label='True Number of Nuclei B')
pl.title('Double Decay Probelm-Approximation Compared with True')
pl.xlim(0.0, 2.5)
pl.ylim(0.0, 100.0)
pl.xlabel('time ($s$)')
pl.ylabel('Number of Nuclei')
pl.legend(loc='best', shadow=True)
pl.grid(True)
4(improved-10) 2.py 文件源码
python
阅读 39
收藏 0
点赞 0
评论 0
评论列表
文章目录