parula
Default colormap: a smooth progression from dark blue through teal and green to yellow.
Category: Graphics > Formatting and Annotation
Syntax
map = parula
Returns a parula colormap with the default number of rows.
map = parula(m)
Returns a parula colormap with m rows.
Description
Parula is the colormap that new figures start with. Its lightness rises steadily and its hue changes gradually, so equal steps in the data look like equal steps in color, and the map degrades gracefully in grayscale.
The returned matrix is interpolated from a fixed table of base colors to reach the requested length.
Input arguments
m- Number of colors, a nonnegative integer.
Output arguments
mapm-by-3 matrix of RGB values between 0 and 1.
Example
First and last colors
map = parula(2)
size(parula)
Output
map = 2×3
0.2422 0.1504 0.6603
0.9769 0.9839 0.0805
ans = 1×2
256 3