Mercurial > hg > octave-lyh
comparison scripts/plot/plotyy.m @ 15202:f3b5cadfd6d5
fix missing semicolons in various .m files
* playaudio.m, accumarray.m, accumdim.m, bicubic.m, narginchk.m,
nargoutchk.m, nthargout.m, image.m, pkg.m, colorbar.m, hdl2struct.m,
legend.m, plotyy.m, private/__go_draw_axes__.m,
private/__print_parse_opts__.m, shrinkfaces.m, pchip.m, polyval.m,
rundemos.m: Fix lines with missing semicolons.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 19 Aug 2012 10:50:40 -0400 |
parents | 5d3a684236b0 |
children | 64e7bb01fce2 |
comparison
equal
deleted
inserted
replaced
15201:efac5593b1de | 15202:f3b5cadfd6d5 |
---|---|
89 delete (ax (i)); | 89 delete (ax (i)); |
90 endfor | 90 endfor |
91 ax = ax(1:2); | 91 ax = ax(1:2); |
92 elseif (length (ax) == 1) | 92 elseif (length (ax) == 1) |
93 ax(2) = axes (); | 93 ax(2) = axes (); |
94 set (ax(2), "nextplot", get (ax(1), "nextplot")) | 94 set (ax(2), "nextplot", get (ax(1), "nextplot")); |
95 elseif (isempty (ax)) | 95 elseif (isempty (ax)) |
96 ax(1) = axes (); | 96 ax(1) = axes (); |
97 ax(2) = axes (); | 97 ax(2) = axes (); |
98 ca = ax(2); | 98 ca = ax(2); |
99 endif | 99 endif |
155 | 155 |
156 if (ishandle (ax(2)) && strcmp (get (ax(2), "type"), "axes")) | 156 if (ishandle (ax(2)) && strcmp (get (ax(2), "type"), "axes")) |
157 axes (ax(2)); | 157 axes (ax(2)); |
158 else | 158 else |
159 ax(2) = axes (); | 159 ax(2) = axes (); |
160 set (ax(2), "nextplot", get (ax(1), "nextplot")) | 160 set (ax(2), "nextplot", get (ax(1), "nextplot")); |
161 endif | 161 endif |
162 newplot (); | 162 newplot (); |
163 | 163 |
164 colors = get (ax(1), "colororder"); | 164 colors = get (ax(1), "colororder"); |
165 set (ax(2), "colororder", [colors(2:end,:); colors(1,:)]); | 165 set (ax(2), "colororder", [colors(2:end,:); colors(1,:)]); |
216 if (ishandle (ax(1)) && ! isprop (ax(1), "__plotyy_axes__")) | 216 if (ishandle (ax(1)) && ! isprop (ax(1), "__plotyy_axes__")) |
217 addproperty ("__plotyy_axes__", ax(1), "data", ax); | 217 addproperty ("__plotyy_axes__", ax(1), "data", ax); |
218 elseif (ishandle (ax(1))) | 218 elseif (ishandle (ax(1))) |
219 set (ax(1), "__plotyy_axes__", ax); | 219 set (ax(1), "__plotyy_axes__", ax); |
220 else | 220 else |
221 error ("plotyy.m: This shouldn't happen. File a bug report.") | 221 error ("plotyy.m: This shouldn't happen. File a bug report."); |
222 endif | 222 endif |
223 if (ishandle (ax(2)) && ! isprop (ax(2), "__plotyy_axes__")) | 223 if (ishandle (ax(2)) && ! isprop (ax(2), "__plotyy_axes__")) |
224 addproperty ("__plotyy_axes__", ax(2), "data", ax); | 224 addproperty ("__plotyy_axes__", ax(2), "data", ax); |
225 elseif (ishandle (ax(2))) | 225 elseif (ishandle (ax(2))) |
226 set (ax(2), "__plotyy_axes__", ax); | 226 set (ax(2), "__plotyy_axes__", ax); |
227 else | 227 else |
228 error ("plotyy.m: This shouldn't happen. File a bug report.") | 228 error ("plotyy.m: This shouldn't happen. File a bug report."); |
229 endif | 229 endif |
230 endfunction | 230 endfunction |
231 | 231 |
232 | 232 |
233 %!demo | 233 %!demo |