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} {} loglog (@var{args}) |
6895
|
21 ## Produce a two-dimensional plot using log scales for both axes. See |
|
22 ## the description of @code{plot} for a description of the arguments |
|
23 ## that @code{loglog} will accept. |
|
24 ## @seealso{plot, semilogx, semilogy} |
3368
|
25 ## @end deftypefn |
4
|
26 |
2314
|
27 ## Author: jwe |
|
28 |
6302
|
29 function retval = loglog (varargin) |
4
|
30 |
6257
|
31 newplot (); |
3063
|
32 |
6257
|
33 ## [h, varargin] = __plt_get_axis_arg__ ("loglog", varargin{:}); |
|
34 h = gca (); |
4
|
35 |
6257
|
36 set (h, "xscale", "log", "yscale", "log"); |
|
37 |
6302
|
38 tmp = __plt__ ("loglog", h, varargin{:}); |
|
39 |
|
40 if (nargout > 0) |
|
41 retval = tmp; |
|
42 endif |
4
|
43 |
|
44 endfunction |