Strange behavior of text () function

1 回表示 (過去 30 日間)
Oskar Gumowski
Oskar Gumowski 2021 年 2 月 4 日
コメント済み: Oskar Gumowski 2021 年 2 月 4 日
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 Center および File ExchangeAnnotations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by