custom labels for errorplot

5 次查看(过去 30 天)
Hi all,
is there a way to add custom labels to each errorbar in an erroplot using a code (instead of a manual text box)?
In my case I want to add one label at the bottom of the negative bar -> displayed above in the example below as the yscale is reversed).

采纳的回答

Peng Li
Peng Li 2020-5-9
using annotation
annotation('textbox', pos, 'String', str, 'FitBoxToText', 'on');
pos is the position where you want to put the textbox in [x, y, width, height], and string is what you want to show.
  4 个评论
Florian
Florian 2020-5-9
That's right. Thanks!

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Errorbars 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by