Azzera filtri
Azzera filtri

add text to the axis

5 visualizzazioni (ultimi 30 giorni)
Tasneem Abed
Tasneem Abed il 16 Lug 2023
Commentato: Star Strider il 19 Lug 2023
i want to add 'noon, sunrise and sunset' at these positons respectivly 13,6,18 below the x-axis with rotation

Risposta accettata

Star Strider
Star Strider il 16 Lug 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 Commenti
Tasneem Abed
Tasneem Abed il 18 Lug 2023
Thanks
Star Strider
Star Strider il 19 Lug 2023
As always, my pleasure!

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Interpolation in Help Center e File Exchange

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by