Mercurial > hg > octave-lyh
annotate scripts/plot/semilogxerr.m @ 9040:dbd0c77e575e
Cleanup documentation file plot.texi
Spellcheck
Stylecheck (Mostly double spaces after periods)
author | Rik <rdrider0-list@yahoo.com> |
---|---|
date | Sun, 22 Mar 2009 14:40:24 -0700 |
parents | 5389a52df87b |
children | 16f53d29049f |
rev | line source |
---|---|
7017 | 1 ## Copyright (C) 2000, 2001, 2002, 2004, 2005, 2006, 2007 Teemu Ikonen |
4019 | 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. | |
4019 | 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/>. | |
4019 | 18 |
19 ## -*- texinfo -*- | |
20 ## @deftypefn {Function File} {} semilogxerr (@var{args}) | |
6895 | 21 ## Produce two-dimensional plots on a semilogarithm axis with errorbars. |
22 ## Many different combinations of arguments are possible. The most used | |
23 ## form is | |
4019 | 24 ## |
25 ## @example | |
26 ## semilogxerr (@var{x}, @var{y}, @var{ey}, @var{fmt}) | |
27 ## @end example | |
28 ## | |
29 ## @noindent | |
30 ## which produces a semi-logarithm plot of @var{y} versus @var{x} | |
31 ## 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
|
32 ## format defined by @var{fmt}. See errorbar for available formats and |
4019 | 33 ## additional information. |
6895 | 34 ## @seealso{errorbar, loglogerr semilogyerr} |
4019 | 35 ## @end deftypefn |
36 | |
37 ## Created: 20.2.2001 | |
38 ## Author: Teemu Ikonen <tpikonen@pcu.helsinki.fi> | |
39 ## Keywords: errorbar, plotting | |
40 | |
6302 | 41 function retval = semilogxerr (varargin) |
4019 | 42 |
7207 | 43 [h, varargin] = __plt_get_axis_arg__ ("semilogxerr", varargin{:}); |
7216 | 44 |
7207 | 45 oldh = gca (); |
46 unwind_protect | |
47 axes (h); | |
48 newplot (); | |
4019 | 49 |
7207 | 50 set (h, "xscale", "log"); |
4019 | 51 |
7207 | 52 tmp = __errcomm__ ("semilogxerr", h, varargin{:}); |
6302 | 53 |
7207 | 54 if (nargout > 0) |
55 retval = tmp; | |
56 endif | |
57 unwind_protect_cleanup | |
58 axes (oldh); | |
59 end_unwind_protect | |
4019 | 60 |
61 endfunction |