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	Mon Dec 03 08:37:38 2012 -0800
+++ b/scripts/image/autumn.m	Mon Dec 03 09:38:58 2012 -0800
@@ -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	Mon Dec 03 08:37:38 2012 -0800
+++ b/scripts/image/bone.m	Mon Dec 03 09:38:58 2012 -0800
@@ -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	Mon Dec 03 08:37:38 2012 -0800
+++ b/scripts/image/colorcube.m	Mon Dec 03 09:38:58 2012 -0800
@@ -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	Mon Dec 03 08:37:38 2012 -0800
+++ b/scripts/image/cool.m	Mon Dec 03 09:38:58 2012 -0800
@@ -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	Mon Dec 03 08:37:38 2012 -0800
+++ b/scripts/image/copper.m	Mon Dec 03 09:38:58 2012 -0800
@@ -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	Mon Dec 03 08:37:38 2012 -0800
+++ b/scripts/image/flag.m	Mon Dec 03 09:38:58 2012 -0800
@@ -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	Mon Dec 03 08:37:38 2012 -0800
+++ b/scripts/image/gmap40.m	Mon Dec 03 09:38:58 2012 -0800
@@ -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	Mon Dec 03 08:37:38 2012 -0800
+++ b/scripts/image/gray.m	Mon Dec 03 09:38:58 2012 -0800
@@ -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	Mon Dec 03 08:37:38 2012 -0800
+++ b/scripts/image/hot.m	Mon Dec 03 09:38:58 2012 -0800
@@ -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	Mon Dec 03 08:37:38 2012 -0800
+++ b/scripts/image/hsv.m	Mon Dec 03 09:38:58 2012 -0800
@@ -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	Mon Dec 03 08:37:38 2012 -0800
+++ b/scripts/image/jet.m	Mon Dec 03 09:38:58 2012 -0800
@@ -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	Mon Dec 03 08:37:38 2012 -0800
+++ b/scripts/image/lines.m	Mon Dec 03 09:38:58 2012 -0800
@@ -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	Mon Dec 03 08:37:38 2012 -0800
+++ b/scripts/image/ocean.m	Mon Dec 03 09:38:58 2012 -0800
@@ -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	Mon Dec 03 08:37:38 2012 -0800
+++ b/scripts/image/pink.m	Mon Dec 03 09:38:58 2012 -0800
@@ -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	Mon Dec 03 08:37:38 2012 -0800
+++ b/scripts/image/prism.m	Mon Dec 03 09:38:58 2012 -0800
@@ -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	Mon Dec 03 08:37:38 2012 -0800
+++ b/scripts/image/rainbow.m	Mon Dec 03 09:38:58 2012 -0800
@@ -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	Mon Dec 03 08:37:38 2012 -0800
+++ b/scripts/image/spring.m	Mon Dec 03 09:38:58 2012 -0800
@@ -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	Mon Dec 03 08:37:38 2012 -0800
+++ b/scripts/image/summer.m	Mon Dec 03 09:38:58 2012 -0800
@@ -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 ();
--- a/scripts/image/white.m	Mon Dec 03 08:37:38 2012 -0800
+++ b/scripts/image/white.m	Mon Dec 03 09:38:58 2012 -0800
@@ -36,7 +36,7 @@
     n = rows (colormap);
   elseif (nargin == 1)
     if (! isscalar (n))
-      error ("white: argument must be a scalar");
+      error ("white: N must be a scalar");
     endif
   else
     print_usage ();
--- a/scripts/image/winter.m	Mon Dec 03 08:37:38 2012 -0800
+++ b/scripts/image/winter.m	Mon Dec 03 09:38:58 2012 -0800
@@ -36,7 +36,7 @@
     n = rows (colormap);
   elseif (nargin == 1)
     if (! isscalar (n))
-      error ("winter: argument must be a scalar");
+      error ("winter: N must be a scalar");
     endif
   else
     print_usage ();