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