# HG changeset patch # User Rik # Date 1351389231 25200 # Node ID de751531e548edf58de7660f9826e23d8449d097 # Parent ed6385e234208426909ea67fa5e78179d62e73e2 test: Add demos for bar.m and barh.m * bar.m, barh.m: Add %!demos. diff -r ed6385e23420 -r de751531e548 scripts/plot/bar.m --- a/scripts/plot/bar.m Fri Oct 26 10:46:17 2012 -0400 +++ b/scripts/plot/bar.m Sat Oct 27 18:53:51 2012 -0700 @@ -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') + diff -r ed6385e23420 -r de751531e548 scripts/plot/barh.m --- a/scripts/plot/barh.m Fri Oct 26 10:46:17 2012 -0400 +++ b/scripts/plot/barh.m Sat Oct 27 18:53:51 2012 -0700 @@ -54,5 +54,15 @@ endfunction -%% FIXME: Need demo or test for function +%!demo +%! clf; +%! x = rand (10, 1); +%! barh (x); +%!demo +%! clf; +%! h = barh (rand (5, 3)); +%! set (h(1), 'facecolor', 'r') +%! set (h(2), 'facecolor', 'g') +%! set (h(3), 'facecolor', 'b') +