필터 지우기
필터 지우기

how to label y axis of a graph in horizontal manner

조회 수: 14 (최근 30일)
Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran 2013년 5월 10일
댓글: Welbeck Sintim 2020년 9월 6일
how to label y axis of a graph in horizontal manner... my output should be jan feb march

채택된 답변

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

추가 답변 (2개)

Azzi Abdelmalek
Azzi Abdelmalek 2013년 5월 10일
By default, y ticks are horizontal

David Sanchez
David Sanchez 2013년 5월 10일
Here you are:
ylabel({'jan';'feb';'march'},'Rotation',0)
  댓글 수: 2
Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran 2013년 5월 10일
how to increase space between jan and feb
Welbeck Sintim
Welbeck Sintim 2020년 9월 6일
Thanks for sharing! Works perfectly fine.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by