how to label y axis of a graph in horizontal manner

how to label y axis of a graph in horizontal manner... my output should be jan feb march

 Accepted Answer

Example
y=[1 2 3 4];
plot(y),
set(gca,'ytick',y,'yticklabel',{'Jan','Feb','March','April'})

More Answers (2)

By default, y ticks are horizontal
Here you are:
ylabel({'jan';'feb';'march'},'Rotation',0)

2 Comments

how to increase space between jan and feb
Thanks for sharing! Works perfectly fine.

Sign in to comment.

Categories

Find more on Aerospace Blockset in Help Center and File Exchange

Products

Tags

Community Treasure Hunt

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

Start Hunting!