Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d0e6d30

Browse files
committed
added time series to specgram
svn path=/trunk/matplotlib/; revision=4039
1 parent 0e8027e commit d0e6d30

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

examples/specgram_demo.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
# the frequency vector, bins are the centers of the time bins in which
2222
# the power is computed, and im is the matplotlib.image.AxesImage
2323
# instance
24+
25+
ax1 = subplot(211)
26+
plot(t, x)
27+
subplot(212, sharex=ax1)
2428
Pxx, freqs, bins, im = specgram(x, NFFT=NFFT, Fs=Fs, noverlap=900)
25-
colorbar()
2629
show()

0 commit comments

Comments
 (0)