# HG changeset patch # User Ben Abbott # Date 1272539506 14400 # Node ID b6364a88de06d74f44fa0e813985eb03b7076d8f # Parent c1111769f59570f183f9831ae631be4b2e7d697e errorbar.m: Add demoss. diff -r c1111769f595 -r b6364a88de06 scripts/ChangeLog --- a/scripts/ChangeLog Wed Apr 28 17:19:37 2010 -0400 +++ b/scripts/ChangeLog Thu Apr 29 07:11:46 2010 -0400 @@ -1,3 +1,7 @@ +2010-04-29 Ben Abbott + + * plot/errorbar.m: Add demoss. + 2010-04-27 David Bateman * plot/private/__errplot__.m: Update the marker in a seperate diff -r c1111769f595 -r b6364a88de06 scripts/plot/errorbar.m --- a/scripts/plot/errorbar.m Wed Apr 28 17:19:37 2010 -0400 +++ b/scripts/plot/errorbar.m Thu Apr 29 07:11:46 2010 -0400 @@ -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, "#~>"); +