Mercurial > hg > octave-lyh
diff scripts/plot/bar.m @ 15565:de751531e548
test: Add demos for bar.m and barh.m
* bar.m, barh.m: Add %!demos.
author | Rik <rik@octave.org> |
---|---|
date | Sat, 27 Oct 2012 18:53:51 -0700 |
parents | 4d917a6a858b |
children | 64e7bb01fce2 |
line wrap: on
line diff
--- a/scripts/plot/bar.m +++ b/scripts/plot/bar.m @@ -95,5 +95,15 @@ endfunction -%% FIXME: Need demo or test for function +%!demo +%! clf; +%! y = rand (10, 1); +%! bar (y); +%!demo +%! clf; +%! h = bar (rand (5, 3)); +%! set (h(1), 'facecolor', 'r') +%! set (h(2), 'facecolor', 'g') +%! set (h(3), 'facecolor', 'b') +