def make_bpm_plot(self): """ Creates and/or updates the data display """ # plotXY([[self.processor.freqs, # self.processor.fft[0]], # [self.processor.freqs, # self.processor.fft[1]], # [self.processor.freqs, # self.processor.fft[2]] # ], # labels=[True, True, True], # showmax=["red", "green", "blue"], # label_ndigits=[0, 0, 0], # showmax_digits=[0, 0, 0], # skip=[3, 3, 3], # name="RGB pixel values", # bg=self.processor.slices[0]) # plotXY([[self.processor.freqs, # self.processor.samples[0]], # [self.processor.freqs, # self.processor.samples[1]], # [self.processor.freqs, # self.processor.samples[2]] # ], # labels=[True, True, True], # showmax=[False, False, False], # label_ndigits=[0, 0, 0], # showmax_digits=[0, 0, 0], # skip=[3, 3, 3], # name="RGB pixel values", # bg=self.processor.slices[0]) plotXY( [ [ self.processor.times, # np.mean(self.processor.samples, axis=0)], self.processor.samples[1] ], [ self.processor.freqs, # np.mean(self.processor.fft, axis=0)]], self.processor.fft[1] ] ], labels=[False, True], showmax=[False, "bpm"], label_ndigits=[0, 0], showmax_digits=[0, 1], skip=[3, 3], name="RGB pixel mean values", bg=self.processor.slices[0])
def make_bpm_plot(self): plotXY([[self.process.times[20:], self.process.samples[20:]], [self.process.freqs, self.process.fft]], labels=[False, True], showmax=[False, "bpm"], label_ndigits=[0, 0], showmax_digits=[0, 1], skip=[3, 3], name="Plot", bg=None)
def make_plot(self): plotXY([[self.app.times, self.app.samples], [self.app.freqs, self.app.fft]], labels=[False, True], showmax=[False, "bpm"], label_ndigits=[0, 0], showmax_digits=[0, 1], skip=[3, 3], name=self.plot_title, bg=self.app.slices[0], bpm=self.app.bpm_s, flag=self.app.flag3)