# HG changeset patch # User Ben Abbott # Date 1224163188 14400 # Node ID 586b02ac671e95ebeb113358e937604ff4cf3d6b # Parent 50fa927b4e490f23568e61eab14628a5783746fd contourf.m: Correct order of patch object handles. diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2008-10-16 Ben Abbott + + * plot/contourf.m: Correct order of patch object handles. + 2008-10-16 David Bateman * plot/__go_draw_axes__.m: If current plot is an image, don't flag diff --git a/scripts/plot/contourf.m b/scripts/plot/contourf.m --- a/scripts/plot/contourf.m +++ b/scripts/plot/contourf.m @@ -168,7 +168,7 @@ [tmp, svec] = sort (cont_area); len = ncont - numel (del_idx); h = zeros (1, len); - for n = len:-1:1 + for n = 1:len idx = svec(n); ii = cont_idx(idx):cont_idx(idx) + cont_len(idx) - 2; h(n) = patch (c(1, ii), c(2, ii), cont_lev(idx), patch_props{:});