# HG changeset patch # User Ben Abbott # Date 1229185838 -3600 # Node ID ee24b6c413f63871966e7dc9a9953befdfc7b11a # Parent 424f1b00833fd683d3b9eb311a8b831ae5ddb079 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-09-08 Kai Habel * plot/contourf.m: Fix case for equal-sized matrices 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{:});