# prism

## Purpose

Colormap of prism colors.

## Synopsis

    cmap = prism(m)
    prism

## Description

`prism(m)` returns an `m`-by-3 colormap matrix that repeats the colors red, orange, yellow, green, blue, violet. The default value for `m` is the length of the current colormap.

`prism`, with no input or output arguments, changes the colors of any line objects in the current axes to the prism colors, repeating the colors as needed.

## Examples

The `prism` colormap is especially useful with contour plots.

    [x,y,z] = peaks(40);
    contour(x,y,z)
    prism

## See Also

    bone, colormap, contour, cool, copper, flag, gray, hot, hsv, jet, pink,
    white

(c) Copyright 1994 by The MathWorks, Inc.