comparison scripts/plot/ezmesh.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 c792872f8942
children b0cdd60db5e5
comparison
equal deleted inserted replaced
14000:15400d5deb1c 14001:5f0bb45e615c
42 ## @var{fz} (@var{s}, @var{t})]}. 42 ## @var{fz} (@var{s}, @var{t})]}.
43 ## 43 ##
44 ## If the argument 'circ' is given, then the function is plotted over a disk 44 ## If the argument 'circ' is given, then the function is plotted over a disk
45 ## centered on the middle of the domain @var{dom}. 45 ## centered on the middle of the domain @var{dom}.
46 ## 46 ##
47 ## The optional return value @var{h} provides a list of handles to the 47 ## The optional return value @var{h} is a graphics handle to the created
48 ## the parts of the vector field (body, arrow and marker). 48 ## surface object.
49 ## 49 ##
50 ## @example 50 ## @example
51 ## @group 51 ## @group
52 ## f = @@(x,y) sqrt(abs(x .* y)) ./ (1 + x.^2 + y.^2); 52 ## f = @@(x,y) sqrt(abs(x .* y)) ./ (1 + x.^2 + y.^2);
53 ## ezmesh (f, [-3, 3]); 53 ## ezmesh (f, [-3, 3]);
63 ## fz = @@(s,t) sin(t); 63 ## fz = @@(s,t) sin(t);
64 ## ezmesh (fx, fy, fz, [-pi, pi, -pi/2, pi/2], 20); 64 ## ezmesh (fx, fy, fz, [-pi, pi, -pi/2, pi/2], 20);
65 ## @end group 65 ## @end group
66 ## @end example 66 ## @end example
67 ## 67 ##
68 ## @seealso{ezplot, ezsurf, ezsurfc, ezmeshc} 68 ## @seealso{ezplot, ezmeshc, ezsurf, ezsurfc}
69 ## @end deftypefn 69 ## @end deftypefn
70 70
71 function retval = ezmesh (varargin) 71 function retval = ezmesh (varargin)
72 72
73 [h, needusage] = __ezplot__ ("mesh", varargin{:}); 73 [h, needusage] = __ezplot__ ("mesh", varargin{:});
79 if (nargout > 0) 79 if (nargout > 0)
80 retval = h; 80 retval = h;
81 endif 81 endif
82 endfunction 82 endfunction
83 83
84
84 %!demo 85 %!demo
85 %! f = @(x,y) sqrt(abs(x .* y)) ./ (1 + x.^2 + y.^2); 86 %! f = @(x,y) sqrt(abs(x .* y)) ./ (1 + x.^2 + y.^2);
86 %! ezmesh (f, [-3, 3]); 87 %! ezmesh (f, [-3, 3]);
87 88
88 %!demo 89 %!demo
89 %! fx = @(s,t) cos (s) .* cos(t); 90 %! fx = @(s,t) cos (s) .* cos(t);
90 %! fy = @(s,t) sin (s) .* cos(t); 91 %! fy = @(s,t) sin (s) .* cos(t);
91 %! fz = @(s,t) sin (t); 92 %! fz = @(s,t) sin (t);
92 %! ezmesh (fx, fy, fz, [-pi,pi,-pi/2,pi/2], 20); 93 %! ezmesh (fx, fy, fz, [-pi,pi,-pi/2,pi/2], 20);
94