def do_plot(self, osc):
o = self.create_osc(osc, all_oscillators=self.oscillators)
frames = list(itertools.islice(o, self.synth.samplerate))
if not plot:
self.statusbar["text"] = "Cannot plot! To plot things, you need to have matplotlib installed!"
return
plot.figure(figsize=(16, 4))
plot.title("Waveform")
plot.plot(frames)
plot.show()
# @todo properly integrate matplotlib in the tkinter gui because the above causes gui freeze problems
# see http://matplotlib.org/examples/user_interfaces/embedding_in_tk2.html
评论列表
文章目录