Mercurial > octave
diff scripts/image/imshow.m @ 22312:533c3c4059a3
Add titles to more of the graphic demos.
* imagesc.m, imshow.m, axis.m, daspect.m, datetick.m, material.m, camlight.m,
compass.m, isocaps.m, isonormals.m, isosurface.m, light.m, loglog.m, patch.m,
plot.m, plotyy.m, semilogx.m, semilogy.m, surfnorm.m, trisurf.m, hold.m:
Add titles to more of the graphic demos.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 16 Aug 2016 10:07:34 -0700 |
parents | ecce63c99c3f |
children | a1840b139c37 |
line wrap: on
line diff
--- a/scripts/image/imshow.m Tue Aug 16 18:19:31 2016 +0200 +++ b/scripts/image/imshow.m Tue Aug 16 10:07:34 2016 -0700 @@ -240,19 +240,23 @@ %!demo %! clf; %! imshow (rand (100, 100)); - -%!demo -%! clf; -%! imshow (rand (100, 100, 3)); - -%!demo -%! clf; -%! imshow (100*rand (100, 100, 3)); +%! title ({"imshow with random 100x100 matrix", "black and white"}); %!demo %! clf; %! imshow (rand (100, 100)); %! colormap (jet (64)); +%! title ({"imshow with random 100x100 matrix, "colormap() makes color image"}); + +%!demo +%! clf; +%! imshow (rand (100, 100, 3)); +%! title ({"imshow with random 100x100x3 matrix", "RGB color"}); + +%!demo +%! clf; +%! imshow (100*rand (100, 100, 3)); +%! title ({"imshow with random 100x100x3 matrix", "Indexed color"}); ## Test input validation %!error imshow ()