comparison scripts/plot/contourf.m @ 11897:ee24b6c413f6 release-3-0-x

contourf.m: Correct order of patch object handles.
author Ben Abbott <bpabbott@mac.com>
date Sat, 13 Dec 2008 17:30:38 +0100
parents 424f1b00833f
children 7518126401ac
comparison
equal deleted inserted replaced
11896:424f1b00833f 11897:ee24b6c413f6
166 ## Now we have everything together and can start plotting the patches 166 ## Now we have everything together and can start plotting the patches
167 ## beginning with largest area. 167 ## beginning with largest area.
168 [tmp, svec] = sort (cont_area); 168 [tmp, svec] = sort (cont_area);
169 len = ncont - numel (del_idx); 169 len = ncont - numel (del_idx);
170 h = zeros (1, len); 170 h = zeros (1, len);
171 for n = len:-1:1 171 for n = 1:len
172 idx = svec(n); 172 idx = svec(n);
173 ii = cont_idx(idx):cont_idx(idx) + cont_len(idx) - 2; 173 ii = cont_idx(idx):cont_idx(idx) + cont_len(idx) - 2;
174 h(n) = patch (c(1, ii), c(2, ii), cont_lev(idx), patch_props{:}); 174 h(n) = patch (c(1, ii), c(2, ii), cont_lev(idx), patch_props{:});
175 endfor 175 endfor
176 176