IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy

Detailed Description

converts colors to a map to be used by draw_stacked.m

Definition in file colors2map.m.

Go to the source code of this file.

Functions

function colors2map (in colors, in no_hists, in no_informative)
 

Function Documentation

function colors2map ( in  colors,
in  no_hists,
in  no_informative 
)
Parameters
colors=(default colors). Can be a cell of 2 elements, 3 elements or 4 elements.
  • 2 elements: {informative color | [] | "colormap name", non-informative color}
  • 3 elements: {[] | "colormap name", non-informative color start, non-informative color end}
  • 4 elements: {informative color start, informative color end, non-informative color start, non-informative color end}
Note
the empty cases ("[]") mean that find_color_stackedhist() will be used; the 3-element case only accepts an empty first element
Parameters
no_hists
no_informative
Returns
[cm, leg_cm, leg_la] is a color map with no_hists rows; leg_cm is a color map with repeating colors grouped; leg_la are the legend labels that correspond to leg_cm