Skip to content
Snippets Groups Projects
Commit 7ecfe599 authored by Stephane Chavin's avatar Stephane Chavin
Browse files

correct vmin

parent 4ec6648f
No related branches found
No related tags found
No related merge requests found
...@@ -115,7 +115,7 @@ def create_spectrogram(sig, directory, names, cmap, minimum, window_size=1024, o ...@@ -115,7 +115,7 @@ def create_spectrogram(sig, directory, names, cmap, minimum, window_size=1024, o
vmin = stft.min() vmin = stft.min()
# plot the spectrogram # plot the spectrogram
plt.imshow(stft[::-1], aspect='auto', 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 # Remove all the borders around the plot
plt.subplots_adjust(top=1, bottom=0, left=0, right=1) plt.subplots_adjust(top=1, bottom=0, left=0, right=1)
if names: if names:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment