How to represent values in horizontal in bar chart

3 vues (au cours des 30 derniers jours)
Sivakumaran Chandrasekaran
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..

Réponse acceptée

David Sanchez
David Sanchez le 21 Mai 2013
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 commentaire
Sivakumaran Chandrasekaran
Thanks David... It worked well for my application..

Connectez-vous pour commenter.

Plus de réponses (1)

Thomas
Thomas le 21 Mai 2013
Modifié(e) : Thomas le 21 Mai 2013

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by