comparison scripts/image/jet.m @ 14640:b9c02ee24de1

new colormap options * colormap.m: New options, list, register, and unregister. * NEWS: Note new colormap options. * autumn.m, bone.m, cool.m, copper.m, flag.m, gmap40.m, gray.m, hot.m, hsv.m, jet.m, lines.m, ocean.m, pink.m, prism.m, rainbow.m, spring.m, summer.m, winter: Always size and return 0x3 when size < 1. Include PKD_ADD and PKG_DEL commands to register and unregister colormap funtions.
author Carnë Draug <carandraug+dev@gmail.com>
date Wed, 16 May 2012 16:52:08 -0400
parents f205d0074687
children 5f1d4def40e1
comparison
equal deleted inserted replaced
14639:87a50e7cec7a 14640:b9c02ee24de1
25 ## If unspecified, the length of the current colormap, or 64, is used. 25 ## If unspecified, the length of the current colormap, or 64, is used.
26 ## @seealso{colormap} 26 ## @seealso{colormap}
27 ## @end deftypefn 27 ## @end deftypefn
28 28
29 ## Author: Kai Habel <kai.habel@gmx.de> 29 ## Author: Kai Habel <kai.habel@gmx.de>
30
31 ## PKG_ADD: colormap ("register", "jet");
32 ## PKG_DEL: colormap ("unregister", "jet");
30 33
31 function map = jet (n) 34 function map = jet (n)
32 35
33 if (nargin == 0) 36 if (nargin == 0)
34 n = rows (colormap); 37 n = rows (colormap);