# HG changeset patch # User jwe # Date 1194886308 0 # Node ID db85cf23875e79df79348e14f4e38163f95c8196 # Parent 5ae4cb7386951ccdb18060254346e1ee97b0ad94 [project @ 2007-11-12 16:51:47 by jwe] diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,8 @@ +2007-11-12 Michael Goffioul + + * plot/__patch__.m: Fix computation of faces when patch is defined + with X/Y/Z data. + 2007-11-09 John W. Eaton * plot/__go_draw_axes__.m: Correct test for have_data. diff --git a/scripts/plot/__patch__.m b/scripts/plot/__patch__.m --- 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);