Home > lib > colors_others.m

colors_others

PURPOSE ^

LBMAP Returns specified Light-Bertlein colormap.

SYNOPSIS ^

function colors = colors_others(n,scheme)

DESCRIPTION ^

LBMAP Returns specified Light-Bertlein colormap.

   LBMAP(N,SCHEME) returns an Nx3 colormap. SCHEME can be one of the
   following strings:

       'Blue'       Single-hue progression to purlish-blue (default)
       'BlueGray'   Diverging progression from blue to gray
       'BrownBlue'  Orange-white-purple diverging scheme
       'RedBlue'    Modified spectral scheme
       'simple3'     colors extracted from http://particletree.com/features/interfaces-and-color-blindness/

   If N is not specified, the size of the colormap is determined by the
   current figure. If no figure exists, MATLAB creates one.

Example 1: 7-color single-hue blue (default)
   load penny
   imagesc(P)
   colormap(lbmap(7))
   colorbar

Example 2: 11-color modified spectrum
   load penny
   imagesc(P)
   colormap(lbmap(11,'RedBlue'))
   colorbar

   See also HSV, GRAY, HOT, BONE, COPPER, PINK, FLAG, COLORMAP, RGBPLOT.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Thu 18-Feb-2010 12:47:47 by m2html © 2003