# HG changeset patch # User Rik # Date 1454170956 28800 # Node ID 80b69efcd9601d94819439fec9c8df9971df9829 # Parent 36b27fac6bc90310289ffe377643cfa442b2fbb4# Parent 8b1e030d3d4f7445db19b519e40d770ac624b77a maint: Periodic merge of stable to default. diff -r 36b27fac6bc9 -r 80b69efcd960 doc/interpreter/plot.txi --- 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 diff -r 36b27fac6bc9 -r 80b69efcd960 doc/interpreter/plotimages.m --- 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)");