Clear Filters
Clear Filters

add text to the axis

5 views (last 30 days)
Tasneem Abed
Tasneem Abed on 16 Jul 2023
Commented: Star Strider on 19 Jul 2023
i want to add 'noon, sunrise and sunset' at these positons respectivly 13,6,18 below the x-axis with rotation

Accepted Answer

Star Strider
Star Strider on 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 Comments
Star Strider
Star Strider on 19 Jul 2023
As always, my pleasure!

Sign in to comment.

More Answers (0)

Categories

Find more on Interpolation in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!