removing numbers on axis without removing the grid lines

조회 수: 34 (최근 30일)
Suleyman Deveci
Suleyman Deveci 2013년 3월 11일
댓글: Igor Gitelman 2022년 11월 30일
Hi all
When I use following command to remove numbers on the -y axis of a graph, it also removes the grid lines. How can I keep the grid lines?
set(gca,'YTick',[])
Regards
Suleyman

채택된 답변

Walter Roberson
Walter Roberson 2013년 3월 11일
Leave the YTick alone, but set YTickLabel to []
  댓글 수: 2
Suleyman Deveci
Suleyman Deveci 2013년 3월 11일
Done. Thanks for your reply.
Igor Gitelman
Igor Gitelman 2022년 11월 30일
thanks. Right to the corect options!!!

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

추가 답변 (2개)

Achilleas
Achilleas 2018년 7월 23일
The aforementioned solution didn't work for me, meaning that I wasn't able to activate the grid minor choice.
So, I used this 'xticklabel',num2str('').

C. Nwachoma
C. Nwachoma 2018년 9월 25일
How do you reverse the process in case you remove the numbering on the wrong axis?

카테고리

Help CenterFile Exchange에서 Axis Labels에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by