FUNCTION REFERENCE
colororder
Set or query the colour order of the current figure or axes.
Set or query the colour order of the current figure or axes.
Syntax
colororder(map)Syntax
colororder(name)Syntax
colororder(target, map)Syntax
c = colororderSets the axes or figure colour order from an n-by-3 RGB matrix in [0,1] or a supported palette name ('gem', 'default', or a built-in colormap name). Subsequent plots cycle through the new colours.
Example
colororder([1 0 0; 0 0 1]); c = colororder; size(c) % [2 3]Differences from MATLAB: Only 'gem', 'default', and built-in colormap names are supported as named palettes.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.