bwr_cmap.m

From Spinach Documentation Wiki
Jump to: navigation, search

Blue -> White -> Red colour map with 255 points and white colour corresponding to zero.

Syntax

    cmap=bwr_cmap()

Description

Very useful for plotting NMR spectra and other things where white means zero. The output is 255x3 RGB column that starts at blue, goes into white and then into red in with a quadratic bend.

Outputs

    cmap - colour map in Matlab format

See also

plot_2d.m, plot_3d.m, volplot.m


Version 2.1, authors: Ilya Kuprov