Skip to content

Commit

Permalink
Don't interpolate plot
Browse files Browse the repository at this point in the history
Co-authored-by: michelwi <[email protected]>
  • Loading branch information
Icemole and michelwi authored Nov 20, 2024
1 parent 6ed4814 commit d155c35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/alignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d155c35

Please sign in to comment.