comparison scripts/plot/errorbar.m @ 11587:c792872f8942

all script files: untabify and strip trailing whitespace
author John W. Eaton <jwe@octave.org>
date Thu, 20 Jan 2011 17:35:29 -0500
parents d6619410e79c
children 22c50cbad2ce
comparison
equal deleted inserted replaced
11586:12df7854fa7c 11587:c792872f8942
146 %! 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]; 146 %! 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];
147 %! 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]; 147 %! 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];
148 %! errorbar(0:10, rand_1x11_data3, rand_1x11_data4, ">"); 148 %! errorbar(0:10, rand_1x11_data3, rand_1x11_data4, ">");
149 149
150 %!demo 150 %!demo
151 %! x = 0:0.5:2*pi; 151 %! x = 0:0.5:2*pi;
152 %! err = x/100; 152 %! err = x/100;
153 %! y1 = sin (x); 153 %! y1 = sin (x);
154 %! y2 = cos (x); 154 %! y2 = cos (x);
155 %! hg = errorbar (x, y1, err, "~", x, y2, err, ">"); 155 %! hg = errorbar (x, y1, err, "~", x, y2, err, ">");
156 156
157 %!demo 157 %!demo
158 %! x = 0:0.5:2*pi; 158 %! x = 0:0.5:2*pi;
159 %! err = x/100; 159 %! err = x/100;
160 %! y1 = sin (x); 160 %! y1 = sin (x);
161 %! y2 = cos (x); 161 %! y2 = cos (x);
162 %! hg = errorbar (x, y1, err, err, "#r", x, y2, err, err, "#~"); 162 %! hg = errorbar (x, y1, err, err, "#r", x, y2, err, err, "#~");
163 163
164 %!demo 164 %!demo
165 %! x = 0:0.5:2*pi; 165 %! x = 0:0.5:2*pi;
166 %! err = x/100; 166 %! err = x/100;
167 %! y1 = sin (x); 167 %! y1 = sin (x);
168 %! y2 = cos (x); 168 %! y2 = cos (x);
169 %! hg = errorbar (x, y1, err, err, err, err, "~>", ... 169 %! hg = errorbar (x, y1, err, err, err, err, "~>", ...
170 %! x, y2, err, err, err, err, "#~>-*"); 170 %! x, y2, err, err, err, err, "#~>-*");
171 171