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