comparison scripts/plot/draw/private/__contour__.m @ 21567:3d25f9f4a62b

maint: Eliminate Britishicisms in the code. * oct-stream.cc, __magick_read__.cc, Array.h, flag.m, lines.m, prism.m, __contour__.m: Use 'optimize' and 'color' rather than British spellings.
author Rik <rik@octave.org>
date Wed, 30 Mar 2016 21:35:51 -0700
parents 89fa0694aa2e
children ffad2baa90f7
comparison
equal deleted inserted replaced
21566:02826fb0f261 21567:3d25f9f4a62b
242 i += cont_len(ncont) + 1; 242 i += cont_len(ncont) + 1;
243 endwhile 243 endwhile
244 244
245 ## Handle for each level the case where we have (a) hole(s) in a patch. 245 ## Handle for each level the case where we have (a) hole(s) in a patch.
246 ## Those are to be filled with the color of level below or with the 246 ## Those are to be filled with the color of level below or with the
247 ## background colour. 247 ## background color.
248 for k = 1:numel (lev) 248 for k = 1:numel (lev)
249 lvl_idx = find (abs (cont_lev - lev(k)) < lvl_eps); 249 lvl_idx = find (abs (cont_lev - lev(k)) < lvl_eps);
250 len = numel (lvl_idx); 250 len = numel (lvl_idx);
251 if (len > 1) 251 if (len > 1)
252 mark = false (size (lvl_idx)); 252 mark = false (size (lvl_idx));
266 mark(b_vec(in)) = ! mark(b_vec(in)); 266 mark(b_vec(in)) = ! mark(b_vec(in));
267 a += 1; 267 a += 1;
268 endwhile 268 endwhile
269 if (numel (mark) > 0) 269 if (numel (mark) > 0)
270 ## All marked contours describe a hole in a larger contour of 270 ## All marked contours describe a hole in a larger contour of
271 ## the same level and must be filled with colour of level below. 271 ## the same level and must be filled with color of level below.
272 ma_idx = lvl_idx(mark); 272 ma_idx = lvl_idx(mark);
273 if (k > 1) 273 if (k > 1)
274 ## Find color of level below. 274 ## Find color of level below.
275 tmp = find (abs (cont_lev - lev(k - 1)) < lvl_eps); 275 tmp = find (abs (cont_lev - lev(k - 1)) < lvl_eps);
276 lvl_bel_idx = tmp(1); 276 lvl_bel_idx = tmp(1);