Mercurial > hg > octave-lyh
diff scripts/plot/daspect.m @ 11588:d5bd2766c640
style fixes for warning and error messages in script files
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 17:51:13 -0500 |
parents | c792872f8942 |
children | b0084095098e |
line wrap: on
line diff
--- a/scripts/plot/daspect.m +++ b/scripts/plot/daspect.m @@ -56,7 +56,7 @@ varargout{1} = get (hax, "dataaspectratiomode"); return else - error ("daspect: only one output is allowed.") + error ("daspect: only one output is allowed") endif case "manual" set (hax, "dataaspectratiomode", "manual"); @@ -68,10 +68,10 @@ elseif (isreal (varargin{1}) && numel (varargin{1}) == 3) set (hax, "dataaspectratio", varargin{1}) else - error ("daspect: invalid input.") + error ("daspect: invalid input") endif elseif (numel (varargin) > 1) - error ("daspect: too many inputs.") + error ("daspect: too many inputs") endif elseif (nargout == 0) print_usage (); @@ -80,7 +80,7 @@ if (nargout == 1) varargout{1} = get (hax, "dataaspectratio"); elseif (nargout > 1) - error ("daspect: only one output is allowed.") + error ("daspect: only one output is allowed") endif endfunction