Home > Applications > SpinW > external > fireprint.m

iFit/fireprint

PURPOSE ^

FIREPRINT Colormap that increases linearly in lightness (with colors)

SYNOPSIS ^

function cmap=fireprint(n,varargin)

DESCRIPTION ^

FIREPRINT Colormap that increases linearly in lightness (with colors)

   Colormap that increases linearly in lightness (such as a pure black to white
   map) but incorporates additional colors that help to emphasize the
   transitions and hence enhance the perception of the data.
   This colormap is designed to be printer-friendly both for color printers as
   as well as B&W printers.

    Written by Matthias & Stefan Geissbuehler - matthias.geissbuehler@a3.epfl.ch
    June 2011

   Credit: The idea of the passages over blue&red stems from ImageJ's LUT 'Fire'
   Our colormap corrects the color-printout-problems as well as the
   non-linearity in the fire-colormap which would make it incompatible
   with a B&W printing.



   Usage:
   cmap = fireprint(n)

   All arguments are optional:

   n           The number of elements (256)

   Further on, the following options can be applied
     'minColor' The absolute minimum value can have a different color
                ('none'), 'white','black','lightgray', 'darkgray'
                or any RGB value ex: [0 1 0]
     'maxColor' The absolute maximum value can have a different color
     'invert'   (0), 1=invert the whole colormap


   Examples:
     figure; imagesc(peaks(200));
     colormap(fireprint)
     colorbar

     figure; imagesc(peaks(200));
     colormap(fireprint(256,'minColor','black','maxColor',[0 1 0]))
     colorbar

     figure; imagesc(peaks(200));
     colormap(fireprint(256,'invert',1,'minColor','darkgray'))
     colorbar

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Mon 26-Nov-2018 15:08:42 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1