set errorbar width and thickness

Set an error bar's width and thickness.
2.8K Downloads
Updated 4 Aug 2010

View License

errorbarT(H,W,T) adjusts the width of error bars with handle H.
The input W is given in the units of the current x-axis.
The input T is the 'LineWidth' of the errorbar

use it like this:

h = errorbar(....);

errorbar_tick(h, .5, 2);

Based on code by Arnaud Laurent.

Cite As

Alan Robinson (2024). set errorbar width and thickness (https://www.mathworks.com/matlabcentral/fileexchange/28390-set-errorbar-width-and-thickness), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Errorbars in Help Center and MATLAB Answers
Acknowledgements

Inspired by: Adjust error bar width

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
1.0.0.0