From d155c35cbb4f674dc44c6016a5a35e7051e74e3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nahuel=20Unai=20Rosell=C3=B3=20Beneitez?= <31628502+Icemole@users.noreply.github.com> Date: Wed, 20 Nov 2024 12:30:49 +0100 Subject: [PATCH] Don't interpolate plot Co-authored-by: michelwi --- mm/alignment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/alignment.py b/mm/alignment.py index 3f35d8db..b908b433 100644 --- a/mm/alignment.py +++ b/mm/alignment.py @@ -989,7 +989,7 @@ def plot(self, viterbi_matrix: np.array, allophone_sequence: List[str], file_nam ax.set_title(title) - ax.imshow(viterbi_matrix, cmap="Blues", interpolation="nearest", aspect="auto", origin="lower") + ax.imshow(viterbi_matrix, cmap="Blues", interpolation="none", aspect="auto", origin="lower") # The plot will be purposefully divided into subdirectories. os.makedirs(os.path.dirname(os.path.join(self.out_plot_dir.get_path(), file_name)), exist_ok=True)