autumn

Returns the autumn colormap, a ramp from red through orange to yellow.

Category: Graphics > Formatting and Annotation

Syntax

map = autumn

Returns the colormap with as many rows as the current colormap.

map = autumn(m)

Returns an m-by-3 colormap.

Description

Each row of the result is one color, ordered from the lowest to the highest data value. Pass the matrix to colormap to apply it, as in colormap(autumn(64)). A smaller m gives visibly distinct bands, which suits contour-like displays.

Input arguments

m
Number of colors. The default is the number of rows of the current colormap.

Output arguments

map
Matrix with m rows and three columns. Each row is an RGB triplet with values between 0 and 1.

Example

Three colors

autumn(3)
Output
ans = 3×3

    1.0000         0         0
    1.0000    0.5000         0
    1.0000    1.0000         0

See also

colormap colorbar parula jet spring summer