Mercurial > octave
changeset 22239:f7b70f3a8fc1
For gnuplot toolkit patch case, broadcast single color values (bug #48626).
* __gnuplot_draw_axes__.m: For the case of a "patch" object, if the color
value is only one-dimensional, broadcast its value to the same dimension
as the z-coordinate vector rather than use the z values.
author | Daniel J Sebald <daniel.sebald@ieee.org> |
---|---|
date | Sat, 30 Jul 2016 10:38:09 -0500 |
parents | dfb49a84c0e4 |
children | 669fc8cf1fdd |
files | scripts/plot/util/private/__gnuplot_draw_axes__.m |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/util/private/__gnuplot_draw_axes__.m Tue Aug 09 21:36:23 2016 +0100 +++ b/scripts/plot/util/private/__gnuplot_draw_axes__.m Sat Jul 30 10:38:09 2016 -0500 @@ -803,7 +803,9 @@ if (isnan (ccdat)) ccdat = (rows (cmap) + rows (addedcmap) + 1) * ones(3, 1); addedcmap = [addedcmap; reshape(color, 1, 3)]; - elseif (numel (ccdat) <= 1) + elseif (numel (ccdat) == 1) + ccdat = ccdat * ones (size (zcol)); + elseif (numel (ccdat) < 1) ccdat = zcol; endif data{data_3d_idx} = [data{data_3d_idx}, ...