modified spectral widget to use custom wavelengths from input