Mercurial > hg > octave-lyh
annotate scripts/plot/semilogxerr.m @ 9245:16f53d29049f
update copyright notices
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 22 May 2009 10:46:00 -0400 |
parents | dbd0c77e575e |
children | 46c8ecc4d565 |
rev | line source |
---|---|
9245 | 1 ## Copyright (C) 2000, 2001, 2002, 2004, 2005, 2006, 2007, 2009 |
2 ## Teemu Ikonen | |
4019 | 3 ## |
4 ## This file is part of Octave. | |
5 ## | |
6 ## Octave is free software; you can redistribute it and/or modify it | |
7 ## under the terms of the GNU General Public License as published by | |
7016 | 8 ## the Free Software Foundation; either version 3 of the License, or (at |
9 ## your option) any later version. | |
4019 | 10 ## |
11 ## Octave is distributed in the hope that it will be useful, but | |
12 ## WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
14 ## General Public License for more details. | |
15 ## | |
16 ## You should have received a copy of the GNU General Public License | |
7016 | 17 ## along with Octave; see the file COPYING. If not, see |
18 ## <http://www.gnu.org/licenses/>. | |
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 | |
9040
dbd0c77e575e
Cleanup documentation file plot.texi
Rik <rdrider0-list@yahoo.com>
parents:
7216
diff
changeset
|
33 ## format defined by @var{fmt}. See errorbar for available formats and |
4019 | 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 |
7207 | 44 [h, varargin] = __plt_get_axis_arg__ ("semilogxerr", varargin{:}); |
7216 | 45 |
7207 | 46 oldh = gca (); |
47 unwind_protect | |
48 axes (h); | |
49 newplot (); | |
4019 | 50 |
7207 | 51 set (h, "xscale", "log"); |
4019 | 52 |
7207 | 53 tmp = __errcomm__ ("semilogxerr", h, varargin{:}); |
6302 | 54 |
7207 | 55 if (nargout > 0) |
56 retval = tmp; | |
57 endif | |
58 unwind_protect_cleanup | |
59 axes (oldh); | |
60 end_unwind_protect | |
4019 | 61 |
62 endfunction |