modified spectra mplotting code (change horz to spatial)