4019
|
1 ## Copyright (C) 2000, 2001, 2002 Teemu Ikonen |
|
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. |
4019
|
19 |
|
20 ## -*- texinfo -*- |
|
21 ## @deftypefn {Function File} {} semilogxerr (@var{args}) |
6895
|
22 ## Produce two-dimensional plots on a semilogarithm axis with errorbars. |
|
23 ## Many different combinations of arguments are possible. The most used |
|
24 ## form is |
4019
|
25 ## |
|
26 ## @example |
|
27 ## semilogxerr (@var{x}, @var{y}, @var{ey}, @var{fmt}) |
|
28 ## @end example |
|
29 ## |
|
30 ## @noindent |
|
31 ## which produces a semi-logarithm plot of @var{y} versus @var{x} |
|
32 ## with errors in the @var{y}-scale defined by @var{ey} and the plot |
|
33 ## format defined by @var{fmt}. See errorbar for available formats and |
|
34 ## additional information. |
6895
|
35 ## @seealso{errorbar, loglogerr semilogyerr} |
4019
|
36 ## @end deftypefn |
|
37 |
|
38 ## Created: 20.2.2001 |
|
39 ## Author: Teemu Ikonen <tpikonen@pcu.helsinki.fi> |
|
40 ## Keywords: errorbar, plotting |
|
41 |
6302
|
42 function retval = semilogxerr (varargin) |
4019
|
43 |
6257
|
44 newplot (); |
4019
|
45 |
6257
|
46 ## [h, varargin] = __plt_get_axis_arg__ ("loglog", varargin{:}); |
|
47 h = gca (); |
4019
|
48 |
6257
|
49 set (h, "xscale", "log"); |
|
50 |
6302
|
51 tmp = __errcomm__ ("semilogxerr", h, varargin{:}); |
|
52 |
|
53 if (nargout > 0) |
|
54 retval = tmp; |
|
55 endif |
4019
|
56 |
|
57 endfunction |