kopia lustrzana https://github.com/corrscope/corrscope
Switch to integrated Brownian noise
rodzic
a2fd00ef4e
commit
beae6e8b2b
|
@ -284,13 +284,16 @@ class MatplotlibRenderer:
|
||||||
f'incorrect wave offsets: {nwaves} waves but {ncenters} offsets')
|
f'incorrect wave offsets: {nwaves} waves but {ncenters} offsets')
|
||||||
|
|
||||||
for idx, wave, center_smp in zip(count(), self.waves, center_smps): # TODO
|
for idx, wave, center_smp in zip(count(), self.waves, center_smps): # TODO
|
||||||
line = self.lines[idx]
|
|
||||||
|
|
||||||
# FIXME random data
|
|
||||||
line.set_ydata(np.random.randn(self.cfg.samples_visible))
|
|
||||||
print(wave)
|
print(wave)
|
||||||
print(center_smp)
|
print(center_smp)
|
||||||
|
|
||||||
|
ax = self.axes[idx]
|
||||||
|
line = self.lines[idx]
|
||||||
|
|
||||||
|
# FIXME random data
|
||||||
|
N = self.cfg.samples_visible
|
||||||
|
data = np.random.randn(N) / np.sqrt(N) / 3
|
||||||
|
line.set_ydata(np.cumsum(data))
|
||||||
print()
|
print()
|
||||||
self.fig.canvas.draw()
|
self.fig.canvas.draw()
|
||||||
self.fig.canvas.flush_events()
|
self.fig.canvas.flush_events()
|
||||||
|
|
Ładowanie…
Reference in New Issue