# HG changeset patch # User Rik # Date 1386009468 28800 # Node ID 8e7d2ee1254d05e346fb3441d5cfc9f923b0bc79 # Parent c404cec84eb4042cd3a8e85fc99637cd7e623060 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. diff -r c404cec84eb4 -r 8e7d2ee1254d scripts/plot/draw/fill.m --- a/scripts/plot/draw/fill.m Mon Dec 02 18:06:40 2013 +0000 +++ b/scripts/plot/draw/fill.m Mon Dec 02 10:37:48 2013 -0800 @@ -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