필터 지우기
필터 지우기

add text to the axis

조회 수: 5 (최근 30일)
Tasneem Abed
Tasneem Abed 2023년 7월 16일
댓글: Star Strider 2023년 7월 19일
i want to add 'noon, sunrise and sunset' at these positons respectivly 13,6,18 below the x-axis with rotation

채택된 답변

Star Strider
Star Strider 2023년 7월 16일
Perhaps this —
t = 0:24;
y = rand(3,25);
figure
plot(t, y)
grid
text([13 6 18], zeros(1,3), {'noon','sunrise','sunset'}, 'Horiz','left', 'Vert','top', 'Rotation',-30)
.
  댓글 수: 19
Tasneem Abed
Tasneem Abed 2023년 7월 18일
Thanks
Star Strider
Star Strider 2023년 7월 19일
As always, my pleasure!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by