Navigation

Operators and Keywords

Function List:

C++ API

: semilogxerr (y, ey)
: semilogxerr (y, …, fmt)
: semilogxerr (x, y, ey)
: semilogxerr (x, y, err, fmt)
: semilogxerr (x, y, lerr, uerr, fmt)
: semilogxerr (x, y, ex, ey, fmt)
: semilogxerr (x, y, lx, ux, ly, uy, fmt)
: semilogxerr (x1, y1, …, fmt, xn, yn, …)
: semilogxerr (hax, …)
: h = semilogxerr (…)

Produce 2-D plots using a logarithmic scale for the x-axis and errorbars at each data point.

Many different combinations of arguments are possible. The most common form is

semilogxerr (x, y, ey, fmt)

which produces a semi-logarithmic plot of y versus x with errors in the y-scale defined by ey and the plot format defined by fmt. See ‘errorbar’, for available formats and additional information.

If the first argument hax is an axes handle, then plot into this axis, rather than the current axes returned by gca.

See also: errorbar, semilogyerr, loglogerr.

Demonstration 1

The following code

 clf;
 x = exp (log (0.01):0.2:log (10));
 y = wblpdf (x, 2, 2);
 ey = 0.5*rand (size (y)) .* y;
 semilogxerr (x, y, ey, "#~x-");
 xlim (x([1, end]));
 title ({"semilogxerr(): semilogx() plot with errorbars", ...
         "X-axis is logarithmic"});

Produces the following figure

Figure 1

Package: octave