TextPlot::plotSpectrum() using a vector instead of heap memory.