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 |
|
7 ## the Free Software Foundation; either version 2, or (at your option) |
|
8 ## any later version. |
|
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 |
|
16 ## along with Octave; see the file COPYING. If not, write to the Free |
5307
|
17 ## Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
|
18 ## 02110-1301, USA. |
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}) |
|
24 ## Specify x, y, and z axis labels for the plot. If you already have a plot |
|
25 ## displayed, use the command @code{replot} to redisplay it with the new |
|
26 ## labels. |
5642
|
27 ## @seealso{plot, semilogx, semilogy, loglog, polar, mesh, contour, |
|
28 ## bar, stairs, replot, ylabel, title} |
3368
|
29 ## @end deftypefn |
4
|
30 |
2314
|
31 ## Author: jwe |
|
32 |
4529
|
33 function h = xlabel (varargin) |
|
34 |
5775
|
35 ## FIXME -- eventually, we will return a graphics handle. For |
4529
|
36 ## now, return something, so that calls that expect a handle won't |
|
37 ## fail (at least immediately). |
4
|
38 |
4529
|
39 if (nargout > 0) |
|
40 h = __axis_label__ ("xlabel", varargin{:}); |
|
41 else |
|
42 __axis_label__ ("xlabel", varargin{:}); |
|
43 endif |
4
|
44 |
|
45 endfunction |