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