Direct plot for viewing spectra. |
| #include "DPSpectrum.hxx" |
Direct Spectrum plot function |
void PlotSpectrum( const Spectrum& spec,
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. 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. |