changeset 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 78eae8c8792d
files scripts/ChangeLog scripts/plot/contourf.m
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog
+++ b/scripts/ChangeLog
@@ -1,3 +1,7 @@
+2008-10-16  Ben Abbott <bpabbott@mac.com>
+
+	* plot/contourf.m: Correct order of patch object handles.
+
 2008-09-08  Kai Habel  <kai.habel@gmx.de>
 
         * plot/contourf.m: Fix case for equal-sized matrices
--- 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{:});