diff scripts/plot/contourf.m @ 8227:586b02ac671e

contourf.m: Correct order of patch object handles.
author Ben Abbott <bpabbott@mac.com>
date Thu, 16 Oct 2008 09:19:48 -0400
parents 0a48abc35932
children ac7f334d9652
line wrap: on
line diff
--- 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{:});