Strange behavior of text () function

1 visualización (últimos 30 días)
Oskar Gumowski
Oskar Gumowski el 4 de Feb. de 2021
Comentada: Oskar Gumowski el 4 de Feb. de 2021
Hello,
I have written an application that generates several hundred graphs after entering data. I need to mark some curves. For this I used the text () function because I couldn't find the position of the points in normalized units, in order to use the annotation() function.
A progress bar is displayed while generating charts. If it is visible then the text () function does not work, but if it is minimized (and after re-entering the axis window) the text () function works correctly.
As you can see labels shows only on the second picture.
With best regards.
  2 comentarios
Stephen23
Stephen23 el 4 de Feb. de 2021
Editada: Stephen23 el 4 de Feb. de 2021
Are you providing the axes handle explicitly to text ?
If you rely on the default behavior then it will refer to the current axes, which could easily be the progress bar (and the text itself is most likely out of view).
Oskar Gumowski
Oskar Gumowski el 4 de Feb. de 2021
Yes, you are right. Thank you very much :)

Iniciar sesión para comentar.

Respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by