def generate_image(self):
locs = self.locs[0]
self.stepsize = 1/self.oversampling
self.xedges = np.arange(self.x_min,self.x_max,self.stepsize)
self.yedges = np.arange(self.y_min,self.y_max,self.stepsize)
H, xedges, yedges = np.histogram2d(locs['x'], locs['y'], bins=(self.xedges, self.yedges))
H = H.T # Let each row list bins with common y range.
self.H = H
评论列表
文章目录