errorbar plot for log y scale
Updated 5 Oct 2006

View License

ERRORBARLOGY Show the vertical errorbar line in log y scale plot when the data error is larger than data itself.

Matlab buidin ERRORBAR does not plot the vertical errobar line in a log y scale plot when data error is larger than data itself. See the screenshot for comparion.

x = logspace(1,3,20);
y = 5*(1 + 0.5*(rand(1,20)-0.5)).*x.^(-2);
y_err(1:13) = y(1:13)/2;
y_err(14:20) = y(14:end)*5;

Cite As

Zhang Jiang (2024). errorbarlogy (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2006a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: errorbarlogx.m

Inspired: superbar

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Update funtion to work properly when plotting multiple errorbar plots with non errobar plots in one figure.