"""Spectrogram comparison of the recording, the simulation and the matched outputs. Usage: python3 plot.py OUT_PREFIX (reads the wavs written by match.py) """ import sys, wave, numpy as np import matplotlib matplotlib.use("Agg") import matplotlib.pyplot as plt from scipy.signal import stft FS = 48000 def load(path): w = wave.open(path) return np.frombuffer(w.readframes(w.getnframes()), dtype="