IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
draw_threshold_line.m
Go to the documentation of this file.
1 %>@ingroup graphicsapi
2 %> @file
3 %> @brief Draws threshold line
4 %
5 %> @param x x-axis values
6 %> @param y scalar
7 %> @param width =2
8 %> @param color =[.7,0,0]
9 function draw_threshold_line(x, y, width, color)
10 global SCALE;
11 if ~exist('width', 'var') || isempty(width)
12  width = scaled(2);
13 end;
14 if ~exist('color', 'var') || isempty(color)
15  color = [.7, 0, 0];
16 end;
17 
18 len = length(x);
19 z = ones(1, len)*y;
20 plot(x, z, 'LineStyle', '--', 'LineWidth', width, 'Color', color);
function draw_threshold_line(in x, in y, in width, in color)
function scaled(in i)