Mercurial > hg > octave-lyh
comparison scripts/plot/title.m @ 11469:c776f063fefe
Overhaul m-script files to use common variable name between code and documentation.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sun, 09 Jan 2011 12:41:21 -0800 |
parents | be55736a0783 |
children | fd0a3ac60b0e |
comparison
equal
deleted
inserted
replaced
11468:e1edf0ba3bcb | 11469:c776f063fefe |
---|---|
16 ## You should have received a copy of the GNU General Public License | 16 ## You should have received a copy of the GNU General Public License |
17 ## along with Octave; see the file COPYING. If not, see | 17 ## along with Octave; see the file COPYING. If not, see |
18 ## <http://www.gnu.org/licenses/>. | 18 ## <http://www.gnu.org/licenses/>. |
19 | 19 |
20 ## -*- texinfo -*- | 20 ## -*- texinfo -*- |
21 ## @deftypefn {Function File} {} title (@var{title}) | 21 ## @deftypefn {Function File} {} title (@var{string}) |
22 ## @deftypefnx {Function File} {} title (@var{title}, @var{p1}, @var{v1}, @dots{}) | 22 ## @deftypefnx {Function File} {} title (@var{string}, @var{p1}, @var{v1}, @dots{}) |
23 ## Create a title object and return a handle to it. | 23 ## Create a title object and return a handle to it. |
24 ## @end deftypefn | 24 ## @end deftypefn |
25 | 25 |
26 ## Author: jwe | 26 ## Author: jwe |
27 | 27 |
28 function h = title (s, varargin) | 28 function h = title (string, varargin) |
29 | 29 |
30 if (rem (nargin, 2) == 1) | 30 if (rem (nargin, 2) == 1) |
31 if (nargout > 0) | 31 if (nargout > 0) |
32 h = __axis_label__ ("title", s, varargin{:}); | 32 h = __axis_label__ ("title", string, varargin{:}); |
33 else | 33 else |
34 __axis_label__ ("title", s, varargin{:}); | 34 __axis_label__ ("title", string, varargin{:}); |
35 endif | 35 endif |
36 else | 36 else |
37 print_usage (); | 37 print_usage (); |
38 endif | 38 endif |
39 | 39 |