comparison scripts/plot/surface.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 3e1871badab9
children 72c96de7a403
comparison
equal deleted inserted replaced
14000:15400d5deb1c 14001:5f0bb45e615c
31 ## columns of @var{z} correspond to different @var{x} values and rows of 31 ## columns of @var{z} correspond to different @var{x} values and rows of
32 ## @var{z} correspond to different @var{y} values. If @var{x} and @var{y} 32 ## @var{z} correspond to different @var{y} values. If @var{x} and @var{y}
33 ## are missing, they are constructed from size of the matrix @var{z}. 33 ## are missing, they are constructed from size of the matrix @var{z}.
34 ## 34 ##
35 ## Any additional properties passed are assigned to the surface. 35 ## Any additional properties passed are assigned to the surface.
36 ##
37 ## The optional return value @var{h} is a graphics handle to the created
38 ## surface object.
36 ## @seealso{surf, mesh, patch, line} 39 ## @seealso{surf, mesh, patch, line}
37 ## @end deftypefn 40 ## @end deftypefn
38 41
39 ## Author: jwe 42 ## Author: jwe
40 43
161 endif 164 endif
162 endif 165 endif
163 166
164 endfunction 167 endfunction
165 168
166 ## Mark file as being tested. Tests for surface are in 169 ## Functional tests for surface() are in surf.m, surfc.m, surfl.m, and pcolor.m
167 ## surf.m, surfc.m, surfl.m, and pcolor.m
168 170
169 %!test 171 %!test
170 %! hf = figure ("visible", "off"); 172 %! hf = figure ("visible", "off");
171 %! unwind_protect 173 %! unwind_protect
172 %! h = surface; 174 %! h = surface;
181 %! assert (get (h, "marker"), get (0, "defaultsurfacemarker")); 183 %! assert (get (h, "marker"), get (0, "defaultsurfacemarker"));
182 %! assert (get (h, "markersize"), get (0, "defaultsurfacemarkersize")); 184 %! assert (get (h, "markersize"), get (0, "defaultsurfacemarkersize"));
183 %! unwind_protect_cleanup 185 %! unwind_protect_cleanup
184 %! close (hf); 186 %! close (hf);
185 %! end_unwind_protect 187 %! end_unwind_protect
188