MATLAB multiline plot colors

Description

Creates a vector of colors equivalent to MATLAB's default colors to use for multiline plots.

Usage

1

Details

This is equivalent to the MATLAB command

1
2
3
    get(gca, 'ColorOrder')

  

Value

Returns vector of color names. This can be used either to create a user-defined color palette for subsequent graphics, a col= specification in graphics functions, or in par.

Note

Method should be considered experimental and will most likely be removed and replaced with similar functionality in the near future.

Author(s)

P. Roebuck proebuck@mdanderson.org

See Also

palette, par, rgb

Examples

1
2
3

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.