winter

Colormap that shades from blue to green.

Category: Graphics > Formatting and Annotation

Syntax

map = winter

Returns the colormap with the default number of rows.

map = winter(m)

Returns m colors.

Description

The red channel is 0, the green channel rises linearly from 0 to 1 and the blue channel falls from 1 to 0.5. The map runs from blue to a light sea green, and is one of the four seasonal maps with spring, summer and autumn.

Input arguments

m
Number of colors, a nonnegative integer.

Output arguments

map
m-by-3 matrix of RGB values between 0 and 1.

Example

Three steps

winter(3)
Output
ans = 3×3

         0         0    1.0000
         0    0.5000    0.7500
         0    1.0000    0.5000

See also

spring summer autumn colormap parula