DPSpectrumAndPeaks

Direct plot for viewing spectra with spectral peaks.
#include "DPSpectrumAndPeaks.hxx"
 

Direct Spectrum and Peaks plot function

void PlotSpectrumAndPeaks( const Spectrum& spec,
                           const Array< SpectralPeakArray >& peaks,
                           const std::string& label="",
                           int x=100,
                           int y=100, 
                           int w=500,
                           int h=225 )
Assigns the data for viewing, as well as a title and dimensions for the plot.
spec : spectrum.
peaks : spectral peaks.
label : title label for the plot, default="" (an empty string).
x : x-coordinate of the upper left corner, default=100.
y : y-coordinate of the upper left corner, default=100.
w : width,  default=500.
h : height, default=225.

See the example.