diff --git a/utils.py b/utils.py index 982a225a09599d45c7f85ee22ce7c83ee4668514..245f8b9d15882a6a33d90012e7533770e213bef6 100755 --- a/utils.py +++ b/utils.py @@ -115,7 +115,7 @@ def create_spectrogram(sig, directory, names, cmap, minimum, window_size=1024, o vmin = stft.min() # plot the spectrogram plt.imshow(stft[::-1], aspect='auto', - interpolation=None, cmap=cmap) # you can add : vmin=vmin) + interpolation=None, cmap=cmap, vmin=vmin) # Remove all the borders around the plot plt.subplots_adjust(top=1, bottom=0, left=0, right=1) if names: