def show_results(self):
pl.plot(self.t, self.n_A1, 'b--', label='A1: Time Constant = 1')
pl.plot(self.t, self.n_B1, 'g', label='B1: Time Constant = 2')
pl.plot(self.t, self.n_A2, 'k--', label='A2: Time Constant = 1')
pl.plot(self.t, self.n_B2, 'c', label='B2: Time Constant = 2')
pl.plot(self.t, self.n_A3, 'm--', label='A3: Time Constant = 1')
pl.plot(self.t, self.n_B3, 'y', label='B3: Time Constant = 2')
pl.title('Double Decay Probelm - Nuclei with Different Time Constans')
pl.xlim(0.0, 5.0)
pl.ylim(0.0, 100.0)
pl.xlabel('time ($s$)')
pl.ylabel('Number of Nuclei')
pl.legend(loc='upper right', shadow=True, fontsize='small')
4(improved-14).py 文件源码
python
阅读 42
收藏 0
点赞 0
评论 0
评论列表
文章目录