View code for errorbarlogx.m |

errorbarlogx

Homogenize the error bars for X-axis in log scale.

**errorbarlogx** turns the X-axis of the current error bar plot to log
scale, and homogonizes the length of the horizontal segements which
terminate the vertical error bars.
By default, Matlab's ERRORBAR draws vertical error bars which are
terminated by small horizontal segments of uniform length for the X-
axis in linear scale. But when turning the X-axis to log scale, these
segments become uneven. Using **errorbarlogx** makes them uniform again.
**errorbarlogx**(N) specifies the relative length of the horizontal
segments, normalized with the total range of the data. By default,
N=0.01 is used.
Limitations: **errorbarlogx** acts only on the last drawn curve. If this
curve is not an error bar plot, it won't work.
Example:
x=logspace(1,3,20);
y=5*(1 + 0.5*(rand(1,20)-0.5)).*x.^(-2);
errorbar(x,y,y/2,'o-');
**errorbarlogx**(0.03);
F. Moisy
Revision: 1.00, Date: 2006/01/20

**See Also**
ERRORBAR.

Help file generated by m2html 1.06