Axis: no labels but grid on

5 次查看(过去 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