shadebounds¶
- shadebounds(x, mid, hi, lo, mid_color, shade_color, bounds_color, shade_alpha)
SHADEBOUNDS Plot a curve with a shaded confidence/bounds band
- Usage:
[line_handle, bounds_handle] = shadebounds(x, mid, hi, lo) [line_handle, bounds_handle] = shadebounds(x, mid, hi, lo, mid_color, shade_color, bounds_color, shade_alpha)
- Inputs:
x : 1xN double - independent variable – required mid : 1xN double - central curve – required hi : 1xN double - upper bound – required lo : 1xN double - lower bound – required mid_color : 1x3 double or char - curve color (default: [0 0 0]) shade_color : 1x3 double or char - shaded fill color (default: [.2 .2 .2]) bounds_color : 1x3 double or char - shaded edge color (default: [.9 .9 .9]) shade_alpha : double - shade transparency (default: 0.1)
- Outputs:
line_handle : handle to the center line bounds_handle : handle to the shaded bounds patch
Example
x = 1:10; mid = x.^2; hi = mid + 6; lo = mid - 4; shadebounds(x, mid, hi, lo, ‘red’, [1 0.8 0.8], ‘black’, 0.3);
See also: fill, plot
∿∿∿ Prerau Laboratory MATLAB Codebase · sleepEEG.org ∿∿∿