def init_scene(self, draw_grid=True):
        self.scene.draw_grid = draw_grid

        self.peak = self.plot_data if len(self.peak) < self.num_samples else np.maximum(self.peak, self.plot_data)
        self.scene.setSceneRect(0, -5, self.num_samples, 10)