comparison scripts/plot/util/axes.m @ 20038:9fc020886ae9

maint: Clean up m-files to follow Octave coding conventions. Try to trim long lines to < 80 chars. Use '##' for single line comments. Use '(...)' around tests for if/elseif/switch/while. Abut cell indexing operator '{' next to variable. Abut array indexing operator '(' next to variable. Use space between negation operator '!' and following expression. Use two newlines between endfunction and start of %!test or %!demo code. Remove unnecessary parens grouping between short-circuit operators. Remove stray extra spaces (typos) between variables and assignment operators. Remove stray extra spaces from ends of lines.
author Rik <rik@octave.org>
date Mon, 23 Feb 2015 14:54:39 -0800
parents 4569903d6c5a
children 777f26aa8e3e
comparison
equal deleted inserted replaced
20037:a1acca0c2216 20038:9fc020886ae9
32 ## @var{hax} the current axis. It also restacks the axes in the 32 ## @var{hax} the current axis. It also restacks the axes in the
33 ## corresponding figure so that @var{hax} is the first entry in the list 33 ## corresponding figure so that @var{hax} is the first entry in the list
34 ## of children. This causes @var{hax} to be displayed on top of any other 34 ## of children. This causes @var{hax} to be displayed on top of any other
35 ## axes objects (Z-order stacking). 35 ## axes objects (Z-order stacking).
36 ## 36 ##
37 ## @seealso {gca, set, get} 37 ## @seealso{gca, set, get}
38 ## @end deftypefn 38 ## @end deftypefn
39 39
40 ## Author: jwe 40 ## Author: jwe
41 41
42 function h = axes (varargin) 42 function h = axes (varargin)
59 idx = find (strcmp (get (hax, "tag"), "scribeoverlay")); 59 idx = find (strcmp (get (hax, "tag"), "scribeoverlay"));
60 if (idx == 1) 60 if (idx == 1)
61 hover = hax(idx); 61 hover = hax(idx);
62 do_restack = true; 62 do_restack = true;
63 endif 63 endif
64 64
65 ## Create an axes object. 65 ## Create an axes object.
66 htmp = __go_axes__ (cf, varargin{:}); 66 htmp = __go_axes__ (cf, varargin{:});
67 if (__is_handle_visible__ (htmp)) 67 if (__is_handle_visible__ (htmp))
68 set (ancestor (cf, "figure"), "currentaxes", htmp); 68 set (ancestor (cf, "figure"), "currentaxes", htmp);
69 endif 69 endif