custom labels for errorplot

2 visualizaciones (últimos 30 días)
Florian
Florian el 9 de Mayo de 2020
Comentada: Peng Li el 9 de Mayo de 2020
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).

Respuesta aceptada

Peng Li
Peng Li el 9 de Mayo de 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 comentarios
Florian
Florian el 9 de Mayo de 2020
That's right. Thanks!
Peng Li
Peng Li el 9 de Mayo de 2020
Glad to be of help!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Errorbars en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by