Update error bar widths automatically on figure resize

Add callback to the current axis to maintain a sensible error bar width on zooming.

您现在正在关注此提交

The Matlab errorbar() function produces error bars with a fixed width in axis units. This makes it hard to zoom in on the plot. This code cleans up the behavior on zooming.

引用格式

Chris Rodgers (2026). Update error bar widths automatically on figure resize (https://ww2.mathworks.cn/matlabcentral/fileexchange/33734-update-error-bar-widths-automatically-on-figure-resize), MATLAB Central File Exchange. 检索时间: .

致谢

参考作品: Adjust error bar width

启发作品: superbar

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.1.0.0

Include errorbar_tick.m in the zip file for convenience.

1.0.0.0