Effacer les filtres
Effacer les filtres

how to label y axis of a graph in horizontal manner

14 vues (au cours des 30 derniers jours)
Sivakumaran Chandrasekaran
how to label y axis of a graph in horizontal manner... my output should be jan feb march

Réponse acceptée

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

Plus de réponses (2)

Azzi Abdelmalek
Azzi Abdelmalek le 10 Mai 2013
By default, y ticks are horizontal
  1 commentaire
Sivakumaran Chandrasekaran
jan
feb
march
i should get as like mentioned above

Connectez-vous pour commenter.


David Sanchez
David Sanchez le 10 Mai 2013
Here you are:
ylabel({'jan';'feb';'march'},'Rotation',0)
  2 commentaires
Sivakumaran Chandrasekaran
how to increase space between jan and feb
Welbeck Sintim
Welbeck Sintim le 6 Sep 2020
Thanks for sharing! Works perfectly fine.

Connectez-vous pour commenter.

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by