diff scripts/plot/private/__patch__.m @ 13698:276bb0dd9d24

patch: ensure facevertexcdata has correct shape * __patch__.m (setvertexdata): If c is a 2-d matrix, smash it to a vector after transposing. * patch.m: New test.
author John W. Eaton <jwe@octave.org>
date Thu, 13 Oct 2011 13:38:19 -0400
parents 9a83ec29aec9
children b0b6aa4f7302
line wrap: on
line diff
--- a/scripts/plot/private/__patch__.m	Thu Oct 13 16:46:28 2011 +0100
+++ b/scripts/plot/private/__patch__.m	Thu Oct 13 13:38:19 2011 -0400
@@ -322,7 +322,7 @@
   elseif (isvector (c))
     fvc = c(:);
   else
-    fvc = c.';
+    fvc = c.'(:);
   endif
 
   args = {"faces", faces, "vertices", vert, "facevertexcdata", fvc, args{:}};