Strange behavior of text () function

조회 수: 7 (최근 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 CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by