Stack plot for comparing spectra.
Plot multiple spectra together.
Utilises the CJSstackplot method written by Caroline Sands.
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 );
Variable | Type | Default Value | Description |
---|---|---|---|
{csm_spectra1, csm_spectra2} | cell | None | Cell array of csm_spectra objects containing spectral matrix X. |
multi | m*1 | all | matrix 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] |
titles | cell | spectra name | titles for the different stackplots e.g. .titles = {'set 1','set 2'} |
legend | cell | sample_id or spectra_num*Pos | legend for each sample |
scale | bool | false | set true if the scales for the different plots are very different, then data will be scaled to better compare |
title | str | simple | Title of plot |
Variable | Type | Description |
---|---|---|
figure | csm_figure | csm_figure with some stored inputs, the handle and auditInfo. |
Copyright Imperial College London 2019