Mercurial > hg > octave-nkf
annotate scripts/plot/xlim.m @ 11272:521f2bb7c443
text.m: Ensure text position property is set after units property.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Thu, 18 Nov 2010 20:14:52 -0500 |
parents | a3cb42b394eb |
children | fd0a3ac60b0e |
rev | line source |
---|---|
9245 | 1 ## Copyright (C) 2007, 2008, 2009 David Bateman |
7050 | 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 -*- | |
10793
be55736a0783
Grammarcheck the documentation from m-files.
Rik <octave@nomad.inbox5.com>
parents:
9245
diff
changeset
|
20 ## @deftypefn {Function File} {@var{xl} =} xlim () |
7050 | 21 ## @deftypefnx {Function File} {} xlim (@var{xl}) |
22 ## @deftypefnx {Function File} {@var{m} =} xlim ('mode') | |
23 ## @deftypefnx {Function File} {} xlim (@var{m}) | |
24 ## @deftypefnx {Function File} {} xlim (@var{h}, @dots{}) | |
9209
923c7cb7f13f
Simplify TeXinfo files by eliminating redundant @iftex followed by @tex construction.
Rik <rdrider0-list@yahoo.com>
parents:
9040
diff
changeset
|
25 ## Get or set the limits of the x-axis of the current plot. Called without |
923c7cb7f13f
Simplify TeXinfo files by eliminating redundant @iftex followed by @tex construction.
Rik <rdrider0-list@yahoo.com>
parents:
9040
diff
changeset
|
26 ## arguments @code{xlim} returns the x-axis limits of the current plot. |
923c7cb7f13f
Simplify TeXinfo files by eliminating redundant @iftex followed by @tex construction.
Rik <rdrider0-list@yahoo.com>
parents:
9040
diff
changeset
|
27 ## If passed a two element vector @var{xl}, the limits of the x-axis are set |
7050 | 28 ## to this value. |
29 ## | |
9209
923c7cb7f13f
Simplify TeXinfo files by eliminating redundant @iftex followed by @tex construction.
Rik <rdrider0-list@yahoo.com>
parents:
9040
diff
changeset
|
30 ## The current mode for calculation of the x-axis can be returned with a |
9040
dbd0c77e575e
Cleanup documentation file plot.texi
Rik <rdrider0-list@yahoo.com>
parents:
8920
diff
changeset
|
31 ## call @code{xlim ('mode')}, and can be either 'auto' or 'manual'. The |
7050 | 32 ## current plotting mode can be set by passing either 'auto' or 'manual' |
33 ## as the argument. | |
34 ## | |
11189
a3cb42b394eb
Fix typos in docstring and demo string.
Rik <octave@nomad.inbox5.com>
parents:
10793
diff
changeset
|
35 ## If passed a handle as the first argument, then operate on this handle |
7050 | 36 ## rather than the current axes handle. |
37 ## @seealso{ylim, zlim, set, get, gca} | |
38 ## @end deftypefn | |
39 | |
40 function retval = xlim (varargin) | |
7208 | 41 ret = __axes_limits__ ("xlim", varargin{:}); |
7050 | 42 |
43 if (! isempty (ret)) | |
44 retval = ret; | |
45 endif | |
46 endfunction |