Mercurial > hg > octave-lojdl
changeset 15720:1a800034d443
Colormap error() calls now report the input variable which is a problem.
* autumn.m, bone.m, colorcube.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, white.m, winter.m: Colormap error() calls now report the input
variable which is a problem.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 03 Dec 2012 09:38:58 -0800 |
parents | 20e9b56bbf2f |
children | f7f1a2d4e9c8 |
files | scripts/image/autumn.m scripts/image/bone.m scripts/image/colorcube.m scripts/image/cool.m scripts/image/copper.m scripts/image/flag.m scripts/image/gmap40.m scripts/image/gray.m scripts/image/hot.m scripts/image/hsv.m scripts/image/jet.m scripts/image/lines.m scripts/image/ocean.m scripts/image/pink.m scripts/image/prism.m scripts/image/rainbow.m scripts/image/spring.m scripts/image/summer.m scripts/image/white.m scripts/image/winter.m |
diffstat | 20 files changed, 20 insertions(+), 20 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/image/autumn.m +++ b/scripts/image/autumn.m @@ -37,7 +37,7 @@ n = rows (colormap); elseif (nargin == 1) if (! isscalar (n)) - error ("autumn: argument must be a scalar"); + error ("autumn: N must be a scalar"); endif else print_usage ();
--- a/scripts/image/bone.m +++ b/scripts/image/bone.m @@ -37,7 +37,7 @@ n = rows (colormap); elseif (nargin == 1) if (! isscalar (n)) - error ("bone: argument must be a scalar"); + error ("bone: N must be a scalar"); endif else print_usage ();
--- a/scripts/image/colorcube.m +++ b/scripts/image/colorcube.m @@ -35,7 +35,7 @@ n = rows (colormap); elseif (nargin == 1) if (! isscalar (n)) - error ("colorcube: argument must be a scalar"); + error ("colorcube: N must be a scalar"); endif else print_usage ();
--- a/scripts/image/cool.m +++ b/scripts/image/cool.m @@ -36,7 +36,7 @@ n = rows (colormap); elseif (nargin == 1) if (! isscalar (n)) - error ("cool: argument must be a scalar"); + error ("cool: N must be a scalar"); endif else print_usage ();
--- a/scripts/image/copper.m +++ b/scripts/image/copper.m @@ -37,7 +37,7 @@ n = rows (colormap); elseif (nargin == 1) if (! isscalar (n)) - error ("copper: argument must be a scalar"); + error ("copper: N must be a scalar"); endif else print_usage ();
--- a/scripts/image/flag.m +++ b/scripts/image/flag.m @@ -37,7 +37,7 @@ n = rows (colormap); elseif (nargin == 1) if (! isscalar (n)) - error ("flag: argument must be a scalar"); + error ("flag: N must be a scalar"); endif else print_usage ();
--- a/scripts/image/gmap40.m +++ b/scripts/image/gmap40.m @@ -37,7 +37,7 @@ n = 6; elseif (nargin == 1) if (! isscalar (n)) - error ("gmap40: argument must be a scalar"); + error ("gmap40: N must be a scalar"); endif else print_usage ();
--- a/scripts/image/gray.m +++ b/scripts/image/gray.m @@ -39,7 +39,7 @@ n = rows (colormap); elseif (nargin == 1) if (! isscalar (n)) - error ("gray: argument must be a scalar"); + error ("gray: N must be a scalar"); endif else print_usage ();
--- a/scripts/image/hot.m +++ b/scripts/image/hot.m @@ -37,7 +37,7 @@ n = rows (colormap); elseif (nargin == 1) if (! isscalar (n)) - error ("hot: argument must be a scalar"); + error ("hot: N must be a scalar"); endif else print_usage ();
--- a/scripts/image/hsv.m +++ b/scripts/image/hsv.m @@ -41,7 +41,7 @@ n = rows (colormap); elseif (nargin == 1) if (! isscalar (n)) - error ("hsv: argument must be a scalar"); + error ("hsv: N must be a scalar"); endif else print_usage ();
--- a/scripts/image/jet.m +++ b/scripts/image/jet.m @@ -37,7 +37,7 @@ n = rows (colormap); elseif (nargin == 1) if (! isscalar (n)) - error ("jet: argument must be a scalar"); + error ("jet: N must be a scalar"); endif else print_usage ();
--- a/scripts/image/lines.m +++ b/scripts/image/lines.m @@ -36,7 +36,7 @@ n = rows (colormap); elseif (nargin == 1) if (! isscalar (n)) - error ("lines: argument must be a scalar"); + error ("lines: N must be a scalar"); endif else print_usage ();
--- a/scripts/image/ocean.m +++ b/scripts/image/ocean.m @@ -39,7 +39,7 @@ n = rows (colormap); elseif (nargin == 1) if (! isscalar (n)) - error ("ocean: argument must be a scalar"); + error ("ocean: N must be a scalar"); endif else print_usage ();
--- a/scripts/image/pink.m +++ b/scripts/image/pink.m @@ -37,7 +37,7 @@ n = rows (colormap); elseif (nargin == 1) if (! isscalar (n)) - error ("pink: argument must be a scalar"); + error ("pink: N must be a scalar"); endif else print_usage ();
--- a/scripts/image/prism.m +++ b/scripts/image/prism.m @@ -37,7 +37,7 @@ n = rows (colormap); elseif (nargin == 1) if (! isscalar (n)) - error ("prism: argument must be a scalar"); + error ("prism: N must be a scalar"); endif else print_usage ();
--- a/scripts/image/rainbow.m +++ b/scripts/image/rainbow.m @@ -40,7 +40,7 @@ n = rows (colormap); elseif (nargin == 1) if (! isscalar (n)) - error ("rainbow: argument must be a scalar"); + error ("rainbow: N must be a scalar"); endif else print_usage ();
--- a/scripts/image/spring.m +++ b/scripts/image/spring.m @@ -36,7 +36,7 @@ n = rows (colormap); elseif (nargin == 1) if (! isscalar (n)) - error ("spring: argument must be a scalar"); + error ("spring: N must be a scalar"); endif else print_usage ();
--- a/scripts/image/summer.m +++ b/scripts/image/summer.m @@ -37,7 +37,7 @@ n = rows (colormap); elseif (nargin == 1) if (! isscalar (n)) - error ("summer: argument must be a scalar"); + error ("summer: N must be a scalar"); endif else print_usage ();