Mercurial > octave-nkf
diff scripts/image/gray.m @ 9751:2b0cc0b6db61
Add demos for colormap functions
author | Soren Hauberg <hauberg@gmail.com> |
---|---|
date | Thu, 22 Oct 2009 12:18:56 -0400 |
parents | a1dbe9d80eee |
children | 466ba499eff5 |
line wrap: on
line diff
--- a/scripts/image/gray.m Wed Oct 21 11:13:33 2009 -0700 +++ b/scripts/image/gray.m Thu Oct 22 12:18:56 2009 -0400 @@ -45,3 +45,10 @@ map = [ gr, gr, gr ] / (number - 1); endfunction + +%!demo +%! ## Show the 'gray' colormap as an image +%! image (1:64, linspace (0, 1, 64), repmat (1:64, 64, 1)') +%! axis ([1, 64, 0, 1], "ticy", "xy") +%! colormap gray +