summer
Colormap that shades from green to yellow.
Category: Graphics > Formatting and Annotation
Syntax
map = summer
Returns the colormap with the default number of rows.
map = summer(m)
Returns m colors.
Description
The red channel rises linearly from 0 to 1, the green channel goes from 0.5 to 1 and the blue channel stays at 0.4. The map starts at a dark green and ends at a light yellow, and is one of the four seasonal maps with spring, autumn and winter.
Input arguments
m- Number of colors, a nonnegative integer.
Output arguments
mapm-by-3 matrix of RGB values between 0 and 1.
Example
Three steps
summer(3)
Output
ans = 3×3
0 0.5000 0.4000
0.5000 0.7500 0.4000
1.0000 1.0000 0.4000