CSM Plot Stack


Stack plot for comparing spectra.

Plot multiple spectra together.

Utilises the CJSstackplot method written by Caroline Sands.

Usage

figure = csm_plot_stack( {csm_spectra1, csm_spectra2} );

figure = csm_plot_stack( {csm_spectra1, csm_spectra2}, 'multi', multi, 'titles', titles, 'legend', legend, 'scale', scale, 'no_labels', no_labels, 'title', title );

Arguments (* = required)

VariableTypeDefault ValueDescription
{csm_spectra1, csm_spectra2}cellNoneCell array of csm_spectra objects containing spectral matrix X.
multim*1allmatrix with classes for which spectra in the X matrix should be plotted together e.g. for a set of 6 spectra plotting the first and last three together multi = [1; 1; 1; 2; 2; 2]
titlescellspectra nametitles for the different stackplots e.g. .titles = {'set 1','set 2'}
legendcellsample_id or spectra_num*Poslegend for each sample
scaleboolfalseset true if the scales for the different plots are very different, then data will be scaled to better compare
titlestrsimpleTitle of plot

Returns

VariableTypeDescription
figurecsm_figurecsm_figure with some stored inputs, the handle and auditInfo.

Copyright Imperial College London 2019