From 7ecfe599f33408febd2e66a42960ddf6896c8424 Mon Sep 17 00:00:00 2001
From: Stephane Chavin <stephane.chavin@lis-lab.fr>
Date: Fri, 6 Dec 2024 15:22:13 +0100
Subject: [PATCH] correct vmin

---
 utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils.py b/utils.py
index 982a225..245f8b9 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:
-- 
GitLab