Mercurial > octave-nkf
diff scripts/image/colormap.m @ 11472:1740012184f9
Use uppercase for variable names in error() strings to match Info documentation. Only m-files done.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sun, 09 Jan 2011 21:33:04 -0800 |
parents | be55736a0783 |
children | fd0a3ac60b0e |
line wrap: on
line diff
--- a/scripts/image/colormap.m Sun Jan 09 16:01:05 2011 -0800 +++ b/scripts/image/colormap.m Sun Jan 09 21:33:04 2011 -0800 @@ -56,10 +56,10 @@ if (! isempty (map)) if (columns (map) != 3) - error ("colormap: map must have 3 columns: [R,G,B]"); + error ("colormap: MAP must have 3 columns: [R,G,B]"); endif if (min (min (map)) < 0 || max (max (map)) > 1) - error ("colormap: map must have values in [0,1]"); + error ("colormap: MAP must have values in [0,1]"); endif ## Set the new color map set (gcf (), "colormap", map);