matlab colormap

This table lists the built-in colormaps functions.

Colormap NameColor Scale
parula
jet
hsv
hot
cool
spring
summer
autumn
winter
gray
bone
copper
pink
lines

colorcube
prism
flag
white

Custom Colormap

To create a custom colormap, specify map as a three-column matrix of RGB triplets where each row defines one color. An RGB triplet is a three-element row vector whose elements specify the intensities of the red, green, and blue components of the color. The intensities must be in the range [0,1]. For example, this matrix defines a colormap containing five colors.

map = [0.2, 0.1, 0.5
    0.1, 0.5, 0.8
    0.2, 0.7, 0.6
    0.8, 0.7, 0.3
    0.9, 1, 0];
posted @ 2015-11-16 10:17  wenglabs  阅读(834)  评论(0编辑  收藏  举报