Mercurial > hg > octave-nkf
diff scripts/plot/errorbar.m @ 10589:b6364a88de06
errorbar.m: Add demoss.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Thu, 29 Apr 2010 07:11:46 -0400 |
parents | 16f53d29049f |
children | eca2af8a92bc |
line wrap: on
line diff
--- a/scripts/plot/errorbar.m +++ b/scripts/plot/errorbar.m @@ -138,3 +138,26 @@ %!demo %! errorbar(0:10,rand(1,11),rand(1,11), ">") + +%!demo +%! x = 0:0.5:2*pi; +%! err = x/100; +%! y1 = sin (x); +%! y2 = cos (x); +%! hg = errorbar (x, y1, err, "~", x, y2, err, ">"); + +%!demo +%! x = 0:0.5:2*pi; +%! err = x/100; +%! y1 = sin (x); +%! y2 = cos (x); +%! hg = errorbar (x, y1, err, err, "#", x, y2, err, err, "#~"); + +%!demo +%! x = 0:0.5:2*pi; +%! err = x/100; +%! y1 = sin (x); +%! y2 = cos (x); +%! hg = errorbar (x, y1, err, err, err, err, "~>", ... +%! x, y2, err, err, err, err, "#~>"); +