python/demos/demo_spectrogram.py: fix title
authorPaul Brossier <piem@piem.org>
Tue, 10 May 2016 17:56:59 +0000 (19:56 +0200)
committerPaul Brossier <piem@piem.org>
Tue, 10 May 2016 17:56:59 +0000 (19:56 +0200)
python/demos/demo_spectrogram.py

index 40de077..3619ddc 100755 (executable)
@@ -57,7 +57,7 @@ def get_spectrogram(filename, samplerate = 0):
     ax.set_yticklabels ( y_labels )
     ax.set_ylabel('Frequency (kHz)')
     ax.set_xlabel('Time (s)')
-    ax.set_title(os.path.basename(soundfile))
+    ax.set_title(os.path.basename(filename))
     for item in ([ax.title, ax.xaxis.label, ax.yaxis.label] +
             ax.get_xticklabels() + ax.get_yticklabels()):
         item.set_fontsize('x-small')