Hi,
I have a simple 3D plot, see figure. I would like to remove the labels on the axis, but I would also like to keep the grid and the little ticks on the axis. But, I don't want the "numbers". If I do this
set(gca,'xtick',[],'ytick',[],'ztick',[]);
I loose the grid. Does anyone know how to do it?

 채택된 답변

Ruger28
Ruger28 2020년 10월 8일
편집: Ruger28 2020년 10월 8일

1 개 추천

set(gca,'XTickLabel','','YTickLabel','','ZTickLabel','');

댓글 수: 2

Maria
Maria 2020년 10월 8일
oh, that was easy! Thanks :)
No problem! Brackets also work, just FYI
set(gca,'XTickLabel',[],'YTickLabel',[],'ZTickLabel',[]);

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Axis Labels에 대해 자세히 알아보기

태그

질문:

2020년 10월 8일

댓글:

2020년 10월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by