Borrar filtros
Borrar filtros

how to label y axis of a graph in horizontal manner

14 visualizaciones (últimos 30 días)
how to label y axis of a graph in horizontal manner... my output should be jan feb march

Respuesta aceptada

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

Más respuestas (2)

Azzi Abdelmalek
Azzi Abdelmalek el 10 de Mayo de 2013
By default, y ticks are horizontal

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

Iniciar sesión para comentar.

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by