Skip to content

Commit fabd520

Browse files
committed
make wp_scalogram demo work with matplotlib 2.0
1 parent df39f6d commit fabd520

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

demo/wp_scalogram.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
# Show spectrogram and wavelet packet coefficients
4141
fig2 = plt.figure()
4242
ax2 = fig2.add_subplot(211)
43-
ax2.specgram(data, NFFT=64, noverlap=32, cmap=cmap)
43+
ax2.specgram(data, NFFT=64, noverlap=32, Fs=2, cmap=cmap,
44+
interpolation='bilinear')
4445
ax2.set_title("Spectrogram of signal")
4546
ax3 = fig2.add_subplot(212)
4647
ax3.imshow(values, origin='upper', extent=[-1, 1, -1, 1],

0 commit comments

Comments
 (0)