Mercurial > hg > octave-avbm
changeset 13809:425b861ae66f
use compatible defaults for patch function
* __patch__.m: Set default xdata, ydata, and facecolor for
compatibility with Matlab.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 03 Nov 2011 16:16:31 -0400 |
parents | d5bfaa582eaa |
children | e6c1308568c3 |
files | scripts/plot/private/__patch__.m |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/private/__patch__.m +++ b/scripts/plot/private/__patch__.m @@ -34,7 +34,7 @@ is_numeric_arg = cellfun (@isnumeric, varargin); if (isempty (varargin)) - args = {"xdata", [0; 1; 1], "ydata", [0; 0; 1], "facecolor", "blue"}; + args = {"xdata", [0; 1; 0], "ydata", [1; 1; 0], "facecolor", [0, 0, 0]}; args = setvertexdata (args); elseif (isstruct (varargin{1})) if (isfield (varargin{1}, "vertices") && isfield (varargin{1}, "faces"))