Mercurial > hg > octave-lyh
diff scripts/plot/pbaspect.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/pbaspect.m +++ b/scripts/plot/pbaspect.m @@ -56,7 +56,7 @@ varargout{1} = get (hax, "plotboxaspectratiomode"); return else - error ("pbaspect: only one output is allowed.") + error ("pbaspect: only one output is allowed") endif case "manual" set (hax, "plotboxaspectratiomode", "manual"); @@ -68,10 +68,10 @@ elseif (isreal (varargin{1}) && numel (varargin{1}) == 3) set (hax, "plotboxaspectratio", varargin{1}) else - error ("pbaspect: invalid input.") + error ("pbaspect: invalid input") endif elseif (numel (varargin) > 1) - error ("pbaspect: too many inputs.") + error ("pbaspect: too many inputs") endif elseif (nargout == 0) print_usage (); @@ -80,7 +80,7 @@ if (nargout == 1) varargout{1} = get (hax, "plotboxaspectratio"); elseif (nargout > 1) - error ("pbaspect: only one output is allowed.") + error ("pbaspect: only one output is allowed") endif endfunction