Mercurial > hg > octave-nkf
comparison scripts/plot/ezplot.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 |
---|---|
59 ## of @var{y} by the second pair of elements. | 59 ## of @var{y} by the second pair of elements. |
60 ## | 60 ## |
61 ## @var{n} is a scalar defining the number of points to use in plotting | 61 ## @var{n} is a scalar defining the number of points to use in plotting |
62 ## the function. | 62 ## the function. |
63 ## | 63 ## |
64 ## The optional return value @var{h} provides a list of handles to the | 64 ## The optional return value @var{h} is a graphics handle to the created plot. |
65 ## the line objects plotted. | |
66 ## | 65 ## |
67 ## @seealso{plot, ezplot3} | 66 ## @seealso{plot, ezplot3} |
68 ## @end deftypefn | 67 ## @end deftypefn |
69 | 68 |
70 function retval = ezplot (varargin) | 69 function retval = ezplot (varargin) |
78 if (nargout > 0) | 77 if (nargout > 0) |
79 retval = h; | 78 retval = h; |
80 endif | 79 endif |
81 endfunction | 80 endfunction |
82 | 81 |
82 | |
83 %!demo | 83 %!demo |
84 %! ezplot (@cos, @sin) | 84 %! ezplot (@cos, @sin) |
85 | 85 |
86 %!demo | 86 %!demo |
87 %! ezplot ("1/x") | 87 %! ezplot ("1/x") |
88 | 88 |
89 %!demo | 89 %!demo |
90 %! ezplot (inline("x^2 - y^2 = 1")) | 90 %! ezplot (inline ("x^2 - y^2 = 1")) |
91 |