Adjust error bar width

Adjust error bars width in an errorbar plot to a ratio of the x-axis or a length (x-axis units).
12,8K Downloads
Aktualisiert 6. Feb 2009

Lizenz anzeigen

Anmerkung des Herausgebers: This file was selected as MATLAB Central Pick of the Week

function errorbar_tick(h,w,xtype)
ERRORBAR_TICK Adjust the width of errorbars

ERRORBAR_TICK(H) adjust the width of error bars with handle H. Error bars width is given as a ratio of X axis lenght (1/80).

ERRORBAR_TICK(H,W) adjust the width of error bars with handle H. The input W is given as a ratio of X axis lenght (1/W). The result is independant of the x-axis units. A ratio between 20 and 80 is usually fine.

ERRORBAR_TICK(H,W,'UNITS') adjust the width of error bars with handle H. The input W is given in the units of the curent x-axis.

Zitieren als

Arnaud Laurent (2026). Adjust error bar width (https://de.mathworks.com/matlabcentral/fileexchange/22826-adjust-error-bar-width), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R2007b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Errorbars finden Sie in Help Center und MATLAB Answers
Version Veröffentlicht Versionshinweise
1.3.0.0

The function has been updated to enable the use of a length as an input.
A new screenshot was made.

1.2.0.0

Screenshot updated

1.1.0.0

Header updated with examples, screenshot provided

1.0.0.0