Strange behavior of text () function

1 view (last 30 days)
Oskar Gumowski
Oskar Gumowski on 4 Feb 2021
Commented: Oskar Gumowski on 4 Feb 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 Comments
Stephen23
Stephen23 on 4 Feb 2021
Edited: Stephen23 on 4 Feb 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 on 4 Feb 2021
Yes, you are right. Thank you very much :)

Sign in to comment.

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!