Mercurial > hg > octave-lyh
comparison scripts/plot/pbaspect.m @ 11113:a8ac114ec9ab
Stylefixes, replace end by endif.
author | Thorsten Meyer <thorsten.meyier@gmx.de> |
---|---|
date | Mon, 18 Oct 2010 20:40:12 +0200 |
parents | 2c356a35d7f5 |
children | a44f979a35ce |
comparison
equal
deleted
inserted
replaced
11112:8ea4cf59c41b | 11113:a8ac114ec9ab |
---|---|
55 if (nargout < 2) | 55 if (nargout < 2) |
56 varargout{1} = get (hax, "plotboxaspectratiomode"); | 56 varargout{1} = get (hax, "plotboxaspectratiomode"); |
57 return | 57 return |
58 else | 58 else |
59 error ("pbaspect: only one output is allowed.") | 59 error ("pbaspect: only one output is allowed.") |
60 end | 60 endif |
61 case {"manual"} | 61 case {"manual"} |
62 set (hax, "plotboxaspectratiomode", "manual"); | 62 set (hax, "plotboxaspectratiomode", "manual"); |
63 case {"auto"} | 63 case {"auto"} |
64 set (hax, "plotboxaspectratiomode", "auto"); | 64 set (hax, "plotboxaspectratiomode", "auto"); |
65 endswitch | 65 endswitch |
72 elseif (numel (varargin) > 1) | 72 elseif (numel (varargin) > 1) |
73 error ("pbaspect: too many inputs.") | 73 error ("pbaspect: too many inputs.") |
74 endif | 74 endif |
75 elseif (nargout == 0) | 75 elseif (nargout == 0) |
76 print_usage (); | 76 print_usage (); |
77 end | 77 endif |
78 | 78 |
79 if (nargout == 1) | 79 if (nargout == 1) |
80 varargout{1} = get (hax, "plotboxaspectratio"); | 80 varargout{1} = get (hax, "plotboxaspectratio"); |
81 elseif (nargout > 1) | 81 elseif (nargout > 1) |
82 error ("pbaspect: only one output is allowed.") | 82 error ("pbaspect: only one output is allowed.") |
83 end | 83 endif |
84 | 84 |
85 endfunction | 85 endfunction |
86 | 86 |
87 %!demo | 87 %!demo |
88 %! x = 0:0.01:4; | 88 %! x = 0:0.01:4; |