Mercurial > hg > octave-lyh
annotate scripts/plot/zlim.m @ 7768:a2d9f325b65a
Use isschar instead of deprecated isstr
author | Rafael Laboissiere <rafael@debian.org> |
---|---|
date | Sat, 03 May 2008 11:47:54 +0200 |
parents | 693ac94c2854 |
children | eb63fbe60fab |
rev | line source |
---|---|
7050 | 1 ## Copyright (C) 2007 David Bateman |
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 3 of the License, or (at | |
8 ## your option) 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, see | |
17 ## <http://www.gnu.org/licenses/>. | |
18 | |
19 ## -*- texinfo -*- | |
20 ## @deftypefn {Function File} {@var{xl} =} zlim () | |
21 ## @deftypefnx {Function File} {} zlim (@var{xl}) | |
22 ## @deftypefnx {Function File} {@var{m} =} zlim ('mode') | |
23 ## @deftypefnx {Function File} {} zlim (@var{m}) | |
24 ## @deftypefnx {Function File} {} zlim (@var{h}, @dots{}) | |
25 ## Get or set the limits of the z axis of the current plot. Called without | |
7666
693ac94c2854
Fixed minor bugs in help texts of [x|y|z]lim and strtrim
sh@sh-laptop
parents:
7208
diff
changeset
|
26 ## arguments @code{zlim} returns the z axis limits of the current plot. |
7050 | 27 ## If passed a two element vector @var{xl}, the limits of the z axis are set |
28 ## to this value. | |
29 ## | |
30 ## The current mode for calculation of the z axis can be returned with a | |
31 ## call @code{zlim ('mode')}, and can be either 'auto' or 'manual'. The | |
32 ## current plotting mode can be set by passing either 'auto' or 'manual' | |
33 ## as the argument. | |
34 ## | |
35 ## If passed an handle as the first argument, then operate on this handle | |
36 ## rather than the current axes handle. | |
37 ## @seealso{xlim, ylim, set, get, gca} | |
38 ## @end deftypefn | |
39 | |
40 function retval = zlim (varargin) | |
7208 | 41 ret = __axes_limits__ ("zlim", varargin{:}); |
7050 | 42 |
43 if (! isempty (ret)) | |
44 retval = ret; | |
45 endif | |
46 endfunction |