Mercurial > octave-nkf
comparison scripts/plot/draw/private/__plt__.m @ 19867: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 | 4197fc428c7d |
children |
comparison
equal
deleted
inserted
replaced
19866:a1acca0c2216 | 19867:9fc020886ae9 |
---|---|
109 nargs -= 2; | 109 nargs -= 2; |
110 endwhile | 110 endwhile |
111 endif | 111 endif |
112 if (y_set) | 112 if (y_set) |
113 tmp = __plt2__ (h, x, y, options, properties); | 113 tmp = __plt2__ (h, x, y, options, properties); |
114 [hlgnd, tlgnd, setlgnd] = __plt_key__ (tmp, options, hlgnd, tlgnd, setlgnd); | 114 [hlgnd, tlgnd, setlgnd] = ... |
115 __plt_key__ (tmp, options, hlgnd, tlgnd, setlgnd); | |
115 properties = {}; | 116 properties = {}; |
116 retval = [retval; tmp]; | 117 retval = [retval; tmp]; |
117 else | 118 else |
118 tmp = __plt1__ (h, x, options, properties); | 119 tmp = __plt1__ (h, x, options, properties); |
119 [hlgnd, tlgnd, setlgnd] = __plt_key__ (tmp, options, hlgnd, tlgnd, setlgnd); | 120 [hlgnd, tlgnd, setlgnd] = ... |
121 __plt_key__ (tmp, options, hlgnd, tlgnd, setlgnd); | |
120 properties = {}; | 122 properties = {}; |
121 retval = [retval; tmp]; | 123 retval = [retval; tmp]; |
122 endif | 124 endif |
123 x_set = false; | 125 x_set = false; |
124 y_set = false; | 126 y_set = false; |
127 endif | 129 endif |
128 elseif (x_set) | 130 elseif (x_set) |
129 if (y_set) | 131 if (y_set) |
130 options = __pltopt__ (caller, {""}); | 132 options = __pltopt__ (caller, {""}); |
131 tmp = __plt2__ (h, x, y, options, properties); | 133 tmp = __plt2__ (h, x, y, options, properties); |
132 [hlgnd, tlgnd, setlgnd] = __plt_key__ (tmp, options, hlgnd, tlgnd, setlgnd); | 134 [hlgnd, tlgnd, setlgnd] = ... |
135 __plt_key__ (tmp, options, hlgnd, tlgnd, setlgnd); | |
133 retval = [retval; tmp]; | 136 retval = [retval; tmp]; |
134 x = next_arg; | 137 x = next_arg; |
135 y_set = false; | 138 y_set = false; |
136 properties = {}; | 139 properties = {}; |
137 else | 140 else |