How to represent values in horizontal in bar chart

1 次查看(过去 30 天)
http://i44.tinypic.com/33vjga1.jpg...in the link mentioned above, i am getting all the months in a single direction.. i should get like january... den febrauary... den march....
january
febrauary..
march..

采纳的回答

David Sanchez
David Sanchez 2013-5-21
x=rand(12,1);
y=rand(12,1);
plot(x,y,'o')
months = ['Jan';
'Feb';
'Mar';
'Apr';
'May';
'Jun';
'Jul';
'Aug';
'Sep';
'Oct';
'Nov';
'Dec'];
set(gca,'YTickLabel',months);

更多回答(1 个)

Thomas
Thomas 2013-5-21
编辑:Thomas 2013-5-21

类别

Help CenterFile Exchange 中查找有关 Bar Plots 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by