Mercurial > jwe > octave
changeset 21156:80b69efcd960
maint: Periodic merge of stable to default.
author | Rik <rik@octave.org> |
---|---|
date | Sat, 30 Jan 2016 08:22:36 -0800 |
parents | 36b27fac6bc9 (current diff) 8b1e030d3d4f (diff) |
children | 94fc5f13d51b |
files | doc/interpreter/plot.txi doc/interpreter/plotimages.m |
diffstat | 2 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/interpreter/plot.txi Sat Jan 30 07:14:18 2016 -0800 +++ b/doc/interpreter/plot.txi Sat Jan 30 08:22:36 2016 -0800 @@ -177,9 +177,9 @@ @group x = 0:0.1:10; y = sin (x); -yp = 0.1 .* randn (size (x)); -ym = -0.1 .* randn (size (x)); -errorbar (x, sin (x), ym, yp); +lerr = 0.1 .* rand (size (x)); +uerr = 0.1 .* rand (size (x)); +errorbar (x, y, lerr, uerr); @end group @end example
--- a/doc/interpreter/plotimages.m Sat Jan 30 07:14:18 2016 -0800 +++ b/doc/interpreter/plotimages.m Sat Jan 30 08:22:36 2016 -0800 @@ -50,9 +50,9 @@ rand ("state", 2); x = 0:0.1:10; y = sin (x); - yl = 0.1 .* rand (size (x)); - yu = 0.1 .* rand (size (x)); - errorbar (x, sin (x), yl, yu); + lerr = 0.1 .* rand (size (x)); + uerr = 0.1 .* rand (size (x)); + errorbar (x, y, lerr, uerr); axis ([0, 10, -1.1, 1.1]); xlabel ("x"); ylabel ("sin (x)");