Mercurial > hg > octave-lyh
comparison 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 |
comparison
equal
deleted
inserted
replaced
11362:456752abad08 | 11363:a0dfd7e8e3e2 |
---|---|
135 axes (oldh); | 135 axes (oldh); |
136 end_unwind_protect | 136 end_unwind_protect |
137 | 137 |
138 endfunction | 138 endfunction |
139 | 139 |
140 %!demo | |
141 %! errorbar(0:10,rand(1,11),0.25*rand(1,11)) | |
142 | 140 |
143 %!demo | 141 %!demo |
144 %! errorbar(0:10,rand(1,11),rand(1,11), ">") | 142 %! 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]; |
143 %! 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]; | |
144 %! errorbar (0:10, rand_1x11_data1, 0.25*rand_1x11_data2); | |
145 | |
146 %!demo | |
147 %! 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]; | |
148 %! 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]; | |
149 %! errorbar(0:10, rand_1x11_data3, rand_1x11_data4, ">"); | |
145 | 150 |
146 %!demo | 151 %!demo |
147 %! x = 0:0.5:2*pi; | 152 %! x = 0:0.5:2*pi; |
148 %! err = x/100; | 153 %! err = x/100; |
149 %! y1 = sin (x); | 154 %! y1 = sin (x); |