Azzera filtri
Azzera filtri

how to label y axis of a graph in horizontal manner

14 visualizzazioni (ultimi 30 giorni)
how to label y axis of a graph in horizontal manner... my output should be jan feb march

Risposta accettata

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

Più risposte (2)

Azzi Abdelmalek
Azzi Abdelmalek il 10 Mag 2013
By default, y ticks are horizontal

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

Categorie

Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by