changeset 33192:430eccf64677 stable

patch: Allow row or column vector for color per face (bug #65431). * scripts/plot/draw/private/__patch__.m: Ignore orientation of input vector with color values per face.
author Markus Mützel <markus.muetzel@gmx.de>
date Mon, 11 Mar 2024 17:44:16 +0100
parents 4bb9bcb60abf
children 16aa98e2c3e7 773c6bd19630
files scripts/plot/draw/private/__patch__.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/draw/private/__patch__.m	Mon Mar 11 17:10:34 2024 +0100
+++ b/scripts/plot/draw/private/__patch__.m	Mon Mar 11 17:44:16 2024 +0100
@@ -118,7 +118,7 @@
           args{8} = "flat";
         endif
         args{9} = "facevertexcdata";
-        args{10} = c;
+        args{10} = c(:);
       elseif (isrow (c) && numel (c) == 3)
         ## One RGB color
         args{7} = "facecolor";