custom labels for errorplot
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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).
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/291595/image.jpeg)
0 Kommentare
Akzeptierte Antwort
Peng Li
am 9 Mai 2020
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Errorbars finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!