Borrar filtros
Borrar filtros

add text to the axis

5 visualizaciones (últimos 30 días)
Tasneem Abed
Tasneem Abed el 16 de Jul. de 2023
Comentada: Star Strider el 19 de Jul. de 2023
i want to add 'noon, sunrise and sunset' at these positons respectivly 13,6,18 below the x-axis with rotation

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Interpolation en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by