how to label y axis of a graph in horizontal manner

2 views (last 30 days)
how to label y axis of a graph in horizontal manner... my output should be jan feb march

Accepted Answer

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

More Answers (2)

Azzi Abdelmalek
Azzi Abdelmalek on 10 May 2013
By default, y ticks are horizontal

David Sanchez
David Sanchez on 10 May 2013
Here you are:
ylabel({'jan';'feb';'march'},'Rotation',0)

Categories

Find more on Networks 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!