Mercurial > octave
changeset 24368:ccedd8a29d3e stable
Make gnuplot color have three components for interpolated edge color (bug #52595).
* __gnuplot_draw_axes__.m: Map the color data into a three-component eight bit
integer for the interpolated edgecolor scenario.
author | Daniel J Sebald <daniel.sebald@ieee.org> |
---|---|
date | Wed, 06 Dec 2017 12:39:27 -0600 |
parents | 9cba59ee9564 |
children | 77d976a84d0a 708b98b4cdd1 |
files | scripts/plot/util/private/__gnuplot_draw_axes__.m |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/util/private/__gnuplot_draw_axes__.m Tue Dec 05 17:12:08 2017 -0600 +++ b/scripts/plot/util/private/__gnuplot_draw_axes__.m Wed Dec 06 12:39:27 2017 -0600 @@ -954,7 +954,7 @@ elseif (strcmp (ec, "interp")) if (numel (ccol) == 3) warning ("\"interp\" not supported, using 1st entry of cdata"); - color = ccol(1,:); + color = mapcdata (ccol(:), obj.cdatamapping, clim, cmap_sz); else if (isscalar (ccol)) ccol = repmat (ccol, numel (xcol), 1);