diff scripts/plot/barh.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 72c96de7a403
children 64e7bb01fce2
line wrap: on
line diff
--- a/scripts/plot/barh.m
+++ b/scripts/plot/barh.m
@@ -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')
+