4(improved-5).py 文件源码

python
阅读 42 收藏 0 点赞 0 评论 0

项目:computational_physics_N2014301020117 作者: yukangnineteen 项目源码 文件源码
def show_results(self):
        pl.plot(self.t1, self.n_A1, 'b--', label='A1, Time Step = 0.05')
        pl.plot(self.t1, self.n_B1, 'b', label='B1, Time Step = 0.05')
        pl.plot(self.t2, self.n_A2, 'g--', label='A2, Time Step = 0.01')
        pl.plot(self.t2, self.n_B2, 'g', label='B2, Time Step = 0.01')
        pl.plot(self.t3, self.n_A3, 'r--', label='A3, Time Step = 0.1')
        pl.plot(self.t3, self.n_B3, 'r', label='B3, Time Step = 0.1')
        pl.title('Double Decay Probelm-Three Time Steps')
        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, fontsize='small')
        pl.grid(True)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号