changeset 19453:c029983a0389

Fix error message when using trisurf w/gnuplot (bug #43447). * scripts/plot/util/private/__go_draw_axes__.m: For 3-D patches with a single color use zcol for color data.
author Rik <rik@octave.org>
date Sun, 21 Dec 2014 19:52:41 -0800
parents 06931d787450
children 82f2a3437e02
files scripts/plot/util/private/__go_draw_axes__.m
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/util/private/__go_draw_axes__.m	Sun Dec 21 19:47:16 2014 -0800
+++ b/scripts/plot/util/private/__go_draw_axes__.m	Sun Dec 21 19:52:41 2014 -0800
@@ -773,6 +773,8 @@
                if (isnan (ccdat))
                  ccdat = (rows (cmap) + rows (addedcmap) + 1) * ones(3, 1);
                  addedcmap = [addedcmap; reshape(color, 1, 3)];
+               elseif (numel (ccdat) <= 1)
+                 ccdat = zcol;  
                endif
                data{data_3d_idx} = [data{data_3d_idx}, ...
                                     [[xcol; xcol(end)], [ycol; ycol(end)], ...