comparison scripts/plot/slice.m @ 14001:5f0bb45e615c

doc: Update documentation for functions returning a graphics handle h (Bug #34761) * voronoi.m, image.m, imagesc.m, imshow.m, area.m, bar.m, barh.m, clabel.m, clf.m, compass.m, ezcontour.m, ezcontourf.m, ezmesh.m, ezmeshc.m, ezplot.m, ezplot3.m, ezpolar.m, ezsurf.m, ezsurfc.m, feather.m, fill.m, findall.m, findobj.m, loglog.m, mesh.m, pareto.m, patch.m, pie.m, pie3.m, plot.m, polar.m, quiver.m, quiver3.m, rectangle.m, ribbon.m, rose.m, scatter.m, scatter3.m, semilogx.m, semilogy.m, slice.m, stem.m, surf.m, surface.m, text.m, title.m, trimesh.m, triplot.m, trisurf.m, xlabel.m, ylabel.m, zlabel.m: Update documentation for functions returning a graphics handle h.
author Rik <octave@nomad.inbox5.com>
date Tue, 06 Dec 2011 13:09:17 -0800
parents 5ec6aa05638d
children 41511cce0488
comparison
equal deleted inserted replaced
14000:15400d5deb1c 14001:5f0bb45e615c
53 ## Cubic spline interpolation---smooth first and second derivatives 53 ## Cubic spline interpolation---smooth first and second derivatives
54 ## throughout the curve. 54 ## throughout the curve.
55 ## @end table 55 ## @end table
56 ## 56 ##
57 ## The default method is @code{"linear"}. 57 ## The default method is @code{"linear"}.
58 ## The optional return value @var{h} is a vector of handles to the 58 ##
59 ## surface graphic objects. 59 ## The optional return value @var{h} is a graphics handle to the created
60 ## surface object.
60 ## 61 ##
61 ## Examples: 62 ## Examples:
62 ## 63 ##
63 ## @example 64 ## @example
64 ## @group 65 ## @group
177 h = tmp; 178 h = tmp;
178 endif 179 endif
179 180
180 endfunction 181 endfunction
181 182
183
182 %!demo 184 %!demo
183 %! [x, y, z] = meshgrid (linspace (-8, 8, 32)); 185 %! [x, y, z] = meshgrid (linspace (-8, 8, 32));
184 %! v = sin (sqrt (x.^2 + y.^2 + z.^2)) ./ (sqrt (x.^2 + y.^2 + z.^2)); 186 %! v = sin (sqrt (x.^2 + y.^2 + z.^2)) ./ (sqrt (x.^2 + y.^2 + z.^2));
185 %! slice (x, y, z, v, [], 0, []); 187 %! slice (x, y, z, v, [], 0, []);
188
189 %!demo
186 %! [xi, yi] = meshgrid (linspace (-7, 7)); 190 %! [xi, yi] = meshgrid (linspace (-7, 7));
187 %! zi = xi + yi; 191 %! zi = xi + yi;
188 %! slice (x, y, z, v, xi, yi, zi); 192 %! slice (x, y, z, v, xi, yi, zi);
193