add text to the axis

10 ビュー (過去 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 Center および File ExchangeSmoothing についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by