1 ## Copyright (C) 2000-2012 Teemu Ikonen
3 ## This file is part of Octave.
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 3 of the License, or (at
8 ## your option) any later version.
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.
15 ## You should have received a copy of the GNU General Public License
16 ## along with Octave; see the file COPYING. If not, see
17 ## <http://www.gnu.org/licenses/>.
20 ## @deftypefn {Function File} {} semilogyerr (@var{args})
21 ## Produce two-dimensional plots using a logarithmic scale for the @var{y}
22 ## axis and errorbars at each data point. Many different combinations of
23 ## arguments are possible. The most used form is
26 ## semilogyerr (@var{x}, @var{y}, @var{ey}, @var{fmt})
30 ## which produces a semi-logarithmic plot of @var{y} versus @var{x}
31 ## with errors in the @var{y}-scale defined by @var{ey} and the plot
32 ## format defined by @var{fmt}. See @code{errorbar} for available formats and
33 ## additional information.
34 ## @seealso{errorbar, loglogerr, semilogxerr}
38 ## Author: Teemu Ikonen <tpikonen@pcu.helsinki.fi>
39 ## Keywords: errorbar, plotting
41 function retval = semilogyerr (varargin)
43 [h, varargin] = __plt_get_axis_arg__ ("semilogyerr", varargin{:});
50 set (h, "yscale", "log");
52 tmp = __errcomm__ ("semilogyerr", h, varargin{:});
57 unwind_protect_cleanup
66 %! y = wblpdf (x, 4, 2);
67 %! eyu = rand (size (y));
68 %! eyl = 1.0 - 1./(1+eyu);
69 %! semilogyerr (x, y, eyl.*y, eyu.*y, "~-d")