spectrum: auto scale number of samples based on terminal size