why the text doesn't show on the plot?

조회 수: 15 (최근 30일)
Niloufar Baba adam
Niloufar Baba adam 2020년 12월 20일
댓글: Niloufar Baba adam 2020년 12월 20일
Hi every one
I am using the text on plot with code:
str={'SyR=0.5'};
text(-4,4,str,'FontSize', 8);
the x limitation is ([-5 5]), and y limitation is ([0.2 7])
but the text doesn't show on the plot.
could you help me to solve this problem?
Thank you
  댓글 수: 6
Walter Roberson
Walter Roberson 2020년 12월 20일
Good point, Mathieu: if hold is not on then plot() will remove the current plot. You can, though, text() then hold on then plot()
Niloufar Baba adam
Niloufar Baba adam 2020년 12월 20일
thank you all of you guys
the problem was about coming plot befor text

댓글을 달려면 로그인하십시오.

답변 (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