<< colormap | Graphics functions | colstyle >> |
colormaps = colormaplist() |
String vector of colormaps sorted in ascending order.
colormaplist returns the available colormaps as an m-by-1 string array.
f = figure('Position', [100, 100, 600, 400], 'Resize', 'off');
ax = axes('Position', [0.1, 0.2, 0.6, 0.7]);
surf(ax, peaks);
cmaps = colormaplist;
listbox = uicontrol('Style', 'listbox', 'Position', [450, 100, 100, 200], 'String', cmaps);
listbox.Callback = @(src, void) colormap(ax, cmaps(src.Value));
Version | Description |
---|---|
1.14.0 | initial version |
Allan CORNET