IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
draw_stacked.m File Reference

Detailed Description

Draws stacked histograms.

Uses BAR(..., 'stacked') to do the job

Definition in file draw_stacked.m.

Go to the source code of this file.

Functions

function draw_stacked (in x, in histss, in no_informative, in colors, in x_hint, in hint, in peakd, in flag_trace_minalt, in flag_draw_peaks, in flag_print_peaks, in flag_text)
 
function plot_marker (in color, in markersize)
 

Function Documentation

function draw_stacked ( in  x,
in  histss,
in  no_informative,
in  colors,
in  x_hint,
in  hint,
in  peakd,
in  flag_trace_minalt,
in  flag_draw_peaks,
in  flag_print_peaks,
in  flag_text 
)
Parameters
x[nf] x-axis values.
histss[no_hists][nf] hits matrix
no_informativeNumber of histograms that are considered "informative"
colorsSee colors2map.m
x_hint=[]. [nf] x-axis values. If not passed or empty, uses x if hint is passed.
hint[nf] "hint" curve that helps the reading of the loadings. If not passed or empty, no hint curve is drawn.
peakd=[] Peak Detector object.
flag_trace_minalt=~isempty(peakd) Whether to draw the threshold line. Only works if the peak detector is passed.
flag_draw_peaks=~isempty(peakd) Whether to mark the detected peaks in the figure.
flag_print_peaks=~isempty(peakd) Whether to print detected peaks on the command line window.
flag_text=0 Whether to write peak wavenumbers besize the "x"'s
function plot_marker ( in  color,
in  markersize 
)