topcolorbar

topcolorbar(w, h, vgap)

TOPCOLORBAR Create a colorbar positioned at the top of the current axes

Usage:

[lab, c] = topcolorbar [lab, c] = topcolorbar(w, h) [lab, c] = topcolorbar(w, h, vgap)

Inputs:

w : double - colorbar width in normalized units (default: 0.2) h : double - colorbar height in normalized units (default: 0.01) vgap : double - vertical gap between plot and colorbar (default: 0.01)

Outputs:

lab : handle to the colorbar label c : handle to the colorbar

Example

[lab, c] = topcolorbar(0.3, 0.02, 0.02);

See also: colorbar, get, set

∿∿∿ Prerau Laboratory MATLAB Codebase · sleepEEG.org ∿∿∿