diff scripts/plot/__patch__.m @ 7189:e8d953d03f6a

[project @ 2007-11-26 20:42:09 by dbateman]
author dbateman
date Mon, 26 Nov 2007 20:42:11 +0000
parents db85cf23875e
children b48a21816f2e
line wrap: on
line diff
--- a/scripts/plot/__patch__.m
+++ b/scripts/plot/__patch__.m
@@ -127,11 +127,11 @@
         idx(t1,i) = idx(t2,i);
       endif
     endfor
-    x = vert(:,1)(idx);
-    y = vert(:,2)(idx);
+    x = reshape (vert(:,1)(idx), size (idx));
+    y = reshape (vert(:,2)(idx), size (idx));
     if (size(vert,2) > 2)
       have_z = true;
-      z = vert(:,3)(idx);
+      z = reshape (vert(:,3)(idx), size (idx));
     endif
   else
     error ("patch: not supported");
@@ -159,6 +159,7 @@
 	clim = get(ax, "clim");
 	if (c(1) < clim(1))
           set (ax, "clim", [c(1), clim(2)])
+	  clim(1) = c(1);
 	endif
 	if (c(1) > clim(2))
           set (ax, "clim", [clim(1), c(1)])