comparison scripts/plot/errorbar.m @ 14237:11949c9795a0

Revamp %!demos in m-files to use Octave coding conventions on spacing, etc. Add clf() to all demos using plot features to get reproducibility. Use 64 as input to all colormaps (jet (64)) to get reproducibility. * bicubic.m, cell2mat.m, celldisp.m, cplxpair.m, interp1.m, interp2.m, interpft.m, interpn.m, profile.m, profshow.m, convhull.m, delaunay.m, griddata.m, inpolygon.m, voronoi.m, autumn.m, bone.m, contrast.m, cool.m, copper.m, flag.m, gmap40.m, gray.m, hot.m, hsv.m, image.m, imshow.m, jet.m, ocean.m, pink.m, prism.m, rainbow.m, spring.m, summer.m, white.m, winter.m, condest.m, onenormest.m, axis.m, clabel.m, colorbar.m, comet.m, comet3.m, compass.m, contour.m, contour3.m, contourf.m, cylinder.m, daspect.m, ellipsoid.m, errorbar.m, ezcontour.m, ezcontourf.m, ezmesh.m, ezmeshc.m, ezplot.m, ezplot3.m, ezpolar.m, ezsurf.m, ezsurfc.m, feather.m, fill.m, fplot.m, grid.m, hold.m, isosurface.m, legend.m, loglog.m, loglogerr.m, pareto.m, patch.m, pbaspect.m, pcolor.m, pie.m, pie3.m, plot3.m, plotmatrix.m, plotyy.m, polar.m, quiver.m, quiver3.m, rectangle.m, refreshdata.m, ribbon.m, rose.m, scatter.m, scatter3.m, semilogx.m, semilogxerr.m, semilogy.m, semilogyerr.m, shading.m, slice.m, sombrero.m, stairs.m, stem.m, stem3.m, subplot.m, surf.m, surfc.m, surfl.m, surfnorm.m, text.m, title.m, trimesh.m, triplot.m, trisurf.m, uigetdir.m, uigetfile.m, uimenu.m, uiputfile.m, waitbar.m, xlim.m, ylim.m, zlim.m, mkpp.m, pchip.m, polyaffine.m, spline.m, bicgstab.m, cgs.m, gplot.m, pcg.m, pcr.m, treeplot.m, strtok.m, demo.m, example.m, rundemos.m, speed.m, test.m, calendar.m, datestr.m, datetick.m, weekday.m: Revamp %!demos to use Octave coding conventions on spacing, etc.
author Rik <octave@nomad.inbox5.com>
date Fri, 20 Jan 2012 12:59:53 -0800
parents 72c96de7a403
children 4506eade9f04
comparison
equal deleted inserted replaced
14236:35903f035390 14237:11949c9795a0
136 136
137 endfunction 137 endfunction
138 138
139 139
140 %!demo 140 %!demo
141 %! clf 141 %! clf;
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]; 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]; 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); 144 %! errorbar (0:10, rand_1x11_data1, 0.25*rand_1x11_data2);
145 145
146 %!demo 146 %!demo
147 %! clf 147 %! clf;
148 %! 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_data3 = [0.423650, 0.142331, 0.213195, 0.129301, 0.975891, 0.012872, 0.635327, 0.338829, 0.764997, 0.401798, 0.551850];
149 %! 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 %! 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];
150 %! errorbar(0:10, rand_1x11_data3, rand_1x11_data4, ">"); 150 %! errorbar (0:10, rand_1x11_data3, rand_1x11_data4, ">");
151 151
152 %!demo 152 %!demo
153 %! clf 153 %! clf;
154 %! x = 0:0.5:2*pi; 154 %! x = 0:0.5:2*pi;
155 %! err = x/100; 155 %! err = x/100;
156 %! y1 = sin (x); 156 %! y1 = sin (x);
157 %! y2 = cos (x); 157 %! y2 = cos (x);
158 %! hg = errorbar (x, y1, err, "~", x, y2, err, ">"); 158 %! hg = errorbar (x, y1, err, "~", x, y2, err, ">");
159 159
160 %!demo 160 %!demo
161 %! clf 161 %! clf;
162 %! x = 0:0.5:2*pi; 162 %! x = 0:0.5:2*pi;
163 %! err = x/100; 163 %! err = x/100;
164 %! y1 = sin (x); 164 %! y1 = sin (x);
165 %! y2 = cos (x); 165 %! y2 = cos (x);
166 %! hg = errorbar (x, y1, err, err, "#r", x, y2, err, err, "#~"); 166 %! hg = errorbar (x, y1, err, err, "#r", x, y2, err, err, "#~");
167 167
168 %!demo 168 %!demo
169 %! clf 169 %! clf;
170 %! x = 0:0.5:2*pi; 170 %! x = 0:0.5:2*pi;
171 %! err = x/100; 171 %! err = x/100;
172 %! y1 = sin (x); 172 %! y1 = sin (x);
173 %! y2 = cos (x); 173 %! y2 = cos (x);
174 %! hg = errorbar (x, y1, err, err, err, err, "~>", ... 174 %! hg = errorbar (x, y1, err, err, err, err, "~>", ...