Strange behavior of text () function

7 次查看(过去 30 天)
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 个评论
Stephen23
Stephen23 2021-2-4
编辑:Stephen23 2021-2-4
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 2021-2-4
Yes, you are right. Thank you very much :)

请先登录,再进行评论。

回答(0 个)

类别

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

标签

Community Treasure Hunt

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

Start Hunting!

Translated by