Filter löschen
Filter löschen

add text to the axis

5 Ansichten (letzte 30 Tage)
Tasneem Abed
Tasneem Abed am 16 Jul. 2023
Kommentiert: Star Strider am 19 Jul. 2023
i want to add 'noon, sunrise and sunset' at these positons respectivly 13,6,18 below the x-axis with rotation

Akzeptierte Antwort

Star Strider
Star Strider am 16 Jul. 2023
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 Kommentare
Tasneem Abed
Tasneem Abed am 18 Jul. 2023
Thanks
Star Strider
Star Strider am 19 Jul. 2023
As always, my pleasure!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Interpolation finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by