Mercurial > octave
diff scripts/plot/util/findobj.m @ 28892:3cac3ceb9629
maint: Use coding style with parentheses after function name to distinguish from a variable.
* audiorecorder.m, interp3.m, iscolormap.m, spinmap.m, expm.m, copyfile.m,
delete.m, edit.m, inputParser.m, movefile.m, narginchk.m, nargoutchk.m,
publish.m, tar.m, tempdir.m, ode23.m, ode23s.m, ode45.m, odeplot.m, sqp.m,
matlabroot.m, savepath.m, expand_rel_paths.m, datetick.m, lighting.m,
material.m, rticks.m, shading.m, thetaticks.m, view.m, xticklabels.m, xticks.m,
yticklabels.m, yticks.m, zticklabels.m, zticks.m, colorbar.m, errorbar.m,
hist.m, isocaps.m, light.m, line.m, patch.m, shrinkfaces.m, stairs.m,
surface.m, allchild.m, ancestor.m, cla.m, clf.m, findobj.m, gca.m, hggroup.m,
isgraphics.m, ishandle.m, print.m, struct2hdl.m, arch_rnd.m, speed.m, clock.m:
Use parentheses '()' after function invocation to distinguish between a variable
and a function.
author | Rik <rik@octave.org> |
---|---|
date | Sat, 10 Oct 2020 17:55:56 -0700 |
parents | a4268efb7334 |
children | 5394d688d456 |
line wrap: on
line diff
--- a/scripts/plot/util/findobj.m Sat Oct 10 16:32:20 2020 -0700 +++ b/scripts/plot/util/findobj.m Sat Oct 10 17:55:56 2020 -0700 @@ -329,7 +329,7 @@ %!test %! hf = figure ("visible", "off"); %! unwind_protect -%! l = line; +%! l = line (); %! obj = findobj (hf, "type", "line"); %! assert (l, obj); %! assert (gca, findobj (hf, "type", "axes"));