k-Wave Toolbox Previous   Next

getColorMap

Return default k-Wave color map

Syntax

cm = getColorMap()
cm = getColorMap(num_colors)

Description

getColorMap returns the default color map used for display and visualisation across the k-Wave Toolbox. Zero values are displayed as white, positive values are displayed as yellow through red to black, and negative values are displayed as light to dark blue-greys. If no value for num_colors is provided, cm will have 256 colors.

Optional Inputs

num_colors

number of colors in the color map (default = 256)

Outputs

cm

three column color map matrix which can be applied using colormap

See Also

colormap


© 2009-2014 Bradley Treeby and Ben Cox.