how to label y axis of a graph in horizontal manner

30 次查看(过去 30 天)
how to label y axis of a graph in horizontal manner... my output should be jan feb march

采纳的回答

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

更多回答(2 个)

Azzi Abdelmalek
Azzi Abdelmalek 2013-5-10
By default, y ticks are horizontal

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

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by