Showing the changes to python (1 of 1 file). Show all
Unified · Split
| @@ -57,7 +57,7 @@ def get_spectrogram(filename, samplerate = 0): · 56 unmodified lines | ||
| 57 | 57 | ax.set_yticklabels ( y_labels ) |
| 58 | 58 | ax.set_ylabel('Frequency (kHz)') |
| 59 | 59 | ax.set_xlabel('Time (s)') |
| 60 | − ax.set_title(os.path.basename(soundfile)) | |
| 60 | + ax.set_title(os.path.basename(filename)) | |
| 61 | 61 | for item in ([ax.title, ax.xaxis.label, ax.yaxis.label] + |
| 62 | 62 | ax.get_xticklabels() + ax.get_yticklabels()): |
| 63 | 63 | item.set_fontsize('x-small') |