Effacer les filtres
Effacer les filtres

add text to the axis

5 vues (au cours des 30 derniers jours)
Tasneem Abed
Tasneem Abed le 16 Juil 2023
Commenté : Star Strider le 19 Juil 2023
i want to add 'noon, sunrise and sunset' at these positons respectivly 13,6,18 below the x-axis with rotation

Réponse acceptée

Star Strider
Star Strider le 16 Juil 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 commentaires
Tasneem Abed
Tasneem Abed le 18 Juil 2023
Thanks
Star Strider
Star Strider le 19 Juil 2023
As always, my pleasure!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Interpolation dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by