Reorganize code.

This commit is contained in:
Roman Zeyde
2014-06-19 18:58:13 +03:00
parent 1ad96d9716
commit b15f891aa0
4 changed files with 22 additions and 53 deletions

9
show.py Normal file
View File

@@ -0,0 +1,9 @@
def spectrogram(t, x):
ax1 = pylab.subplot(211)
pylab.plot(t, x)
pylab.subplot(212, sharex=ax1)
Pxx, freqs, bins, im = pylab.specgram(x,
NFFT=NFFT, Fs=Fs, noverlap=NFFT/2, cmap=pylab.cm.gist_heat)
pylab.show()