set errorbar width and thickness

Set an error bar's width and thickness.

You are now following this Submission

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 (2026). set errorbar width and thickness (https://uk.mathworks.com/matlabcentral/fileexchange/28390-set-errorbar-width-and-thickness), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: Adjust error bar width

Inspired: superbar

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0