data.py 文件源码

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

项目:trappist1 作者: rodluger 项目源码 文件源码
def update(self):
    '''

    '''

    # Update plot
    contour = np.zeros((self.ny,self.nx))
    contour[np.where(self.aperture)] = 1
    contour = np.lib.pad(contour, 1, self.PadWithZeros)
    highres = zoom(contour, 100, order = 0, mode='nearest') 
    extent = np.array([-1, self.nx, -1, self.ny])
    if self.contour is not None:
      for coll in self.contour.collections: 
        self.ax.collections.remove(coll) 
    self.contour = self.ax.contour(highres, levels=[0.5], extent=extent, origin='lower', colors='r', linewidths=2) 
    self.update_bkg()
    self.update_lc()
    self.update_lcbkg()
    self.fig.canvas.draw()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号