2847
|
1 ## Copyright (C) 1996, 1997 John W. Eaton |
2313
|
2 ## |
|
3 ## This file is part of Octave. |
|
4 ## |
|
5 ## Octave is free software; you can redistribute it and/or modify it |
|
6 ## under the terms of the GNU General Public License as published by |
7016
|
7 ## the Free Software Foundation; either version 3 of the License, or (at |
|
8 ## your option) any later version. |
2313
|
9 ## |
|
10 ## Octave is distributed in the hope that it will be useful, but |
|
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
13 ## General Public License for more details. |
|
14 ## |
|
15 ## You should have received a copy of the GNU General Public License |
7016
|
16 ## along with Octave; see the file COPYING. If not, see |
|
17 ## <http://www.gnu.org/licenses/>. |
245
|
18 |
3368
|
19 ## -*- texinfo -*- |
|
20 ## @deftypefn {Function File} {} xlabel (@var{string}) |
|
21 ## @deftypefnx {Function File} {} ylabel (@var{string}) |
|
22 ## @deftypefnx {Function File} {} zlabel (@var{string}) |
6895
|
23 ## Specify x, y, and z axis labels for the current figure. |
5642
|
24 ## @seealso{plot, semilogx, semilogy, loglog, polar, mesh, contour, |
6448
|
25 ## bar, stairs, ylabel, title} |
3368
|
26 ## @end deftypefn |
4
|
27 |
2314
|
28 ## Author: jwe |
|
29 |
4529
|
30 function h = xlabel (varargin) |
|
31 |
6412
|
32 if (rem (nargin, 2) == 1) |
|
33 if (nargout > 0) |
|
34 h = __axis_label__ ("xlabel", varargin{:}); |
|
35 else |
|
36 __axis_label__ ("xlabel", varargin{:}); |
|
37 endif |
4529
|
38 else |
6412
|
39 print_usage (); |
4529
|
40 endif |
4
|
41 |
|
42 endfunction |