Axis: no labels but grid on

조회 수: 11 (최근 30일)
Maria
Maria 2020년 10월 8일
댓글: Ruger28 2020년 10월 8일
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일
set(gca,'XTickLabel','','YTickLabel','','ZTickLabel','');
  댓글 수: 2
Maria
Maria 2020년 10월 8일
oh, that was easy! Thanks :)
Ruger28
Ruger28 2020년 10월 8일
No problem! Brackets also work, just FYI
set(gca,'XTickLabel',[],'YTickLabel',[],'ZTickLabel',[]);

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

추가 답변 (0개)

카테고리

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