# HG changeset patch # User John W. Eaton # Date 1318527499 14400 # Node ID 276bb0dd9d24eb9e0805380a682f3b4a4c9ac5c8 # Parent 0f8ff98929b2af0aab6a0803170c8341a5ab0d28 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. diff -r 0f8ff98929b2 -r 276bb0dd9d24 scripts/plot/private/__patch__.m --- 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{:}};