Mercurial > hg > octave-nkf
diff scripts/plot/errorbar.m @ 11363:a0dfd7e8e3e2
Assign data used in demo plots for reproducibility between runs
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Tue, 14 Dec 2010 17:27:19 -0800 |
parents | 65b240770880 |
children | fd0a3ac60b0e |
line wrap: on
line diff
--- a/scripts/plot/errorbar.m +++ b/scripts/plot/errorbar.m @@ -137,11 +137,16 @@ endfunction -%!demo -%! errorbar(0:10,rand(1,11),0.25*rand(1,11)) %!demo -%! errorbar(0:10,rand(1,11),rand(1,11), ">") +%! rand_1x11_data1 = [0.82712, 0.50325, 0.35613, 0.77089, 0.20474, 0.69160, 0.30858, 0.88225, 0.35187, 0.14168, 0.54270]; +%! rand_1x11_data2 = [0.506375, 0.330106, 0.017982, 0.859270, 0.140641, 0.327839, 0.275886, 0.162453, 0.807592, 0.318509, 0.921112]; +%! errorbar (0:10, rand_1x11_data1, 0.25*rand_1x11_data2); + +%!demo +%! rand_1x11_data3 = [0.423650, 0.142331, 0.213195, 0.129301, 0.975891, 0.012872, 0.635327, 0.338829, 0.764997, 0.401798, 0.551850]; +%! rand_1x11_data4 = [0.682566, 0.456342, 0.132390, 0.341292, 0.108633, 0.601553, 0.040455, 0.146665, 0.309187, 0.586291, 0.540149]; +%! errorbar(0:10, rand_1x11_data3, rand_1x11_data4, ">"); %!demo %! x = 0:0.5:2*pi;