changeset 7160:db85cf23875e

[project @ 2007-11-12 16:51:47 by jwe]
author jwe
date Mon, 12 Nov 2007 16:51:48 +0000
parents 5ae4cb738695
children cfa0602094e9
files scripts/ChangeLog scripts/plot/__patch__.m
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog
+++ b/scripts/ChangeLog
@@ -1,3 +1,8 @@
+2007-11-12  Michael Goffioul  <michael.goffioul@gmail.com>
+
+	* plot/__patch__.m: Fix computation of faces when patch is defined
+	with X/Y/Z data.
+
 2007-11-09  John W. Eaton  <jwe@octave.org>
 
 	* plot/__go_draw_axes__.m: Correct test for have_data.
--- a/scripts/plot/__patch__.m
+++ b/scripts/plot/__patch__.m
@@ -114,7 +114,8 @@
     else
       vert = [x(:), y(:)];
     endif
-    faces = reshape (1:numel(x), size(x,2), size(x,1));
+    faces = reshape (1:numel(x), rows (x), columns (x));
+    faces = faces';
   elseif (have_faces)
     nr = size (faces, 2);
     nc = size (faces, 1);