Mercurial > hg > octave-jordi
changeset 18039:8e7d2ee1254d
fill.m: Fix incorrect face coloring when using RGB triple (bug #40732).
* fill.m: Don't set "facecolor" to "flat" when row vector color is found.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 02 Dec 2013 10:37:48 -0800 |
parents | c404cec84eb4 |
children | 39edc0fccf58 728cb7530538 |
files | scripts/plot/draw/fill.m |
diffstat | 1 files changed, 2 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/draw/fill.m +++ b/scripts/plot/draw/fill.m @@ -94,15 +94,8 @@ for i = 1 : length (iargs) cdata = varargin{iargs(i) + 2}; - ## Matlab uses flat/interp shading based on orientation of cdata. - if (isnumeric (cdata) && isrow (cdata)) - popt = ["facecolor", "flat", opts]; - else - popt = opts; - endif - [htmp, fail] = __patch__ (hax, varargin{iargs(i)+(0:1)}, cdata, - popt{:}); + opts{:}); if (fail) print_usage (); endif @@ -145,7 +138,7 @@ endif elseif (isnumeric (arg)) ## Assume any numeric argument is correctly formatted cdata. - ## Let patch worry about the multple different input formats + ## Let patch worry about the multple different input formats. retval = true; endif endfunction