Axis: no labels but grid on

7 views (last 30 days)
Maria
Maria on 8 Oct 2020
Commented: Ruger28 on 8 Oct 2020
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?

Accepted Answer

Ruger28
Ruger28 on 8 Oct 2020
Edited: Ruger28 on 8 Oct 2020
set(gca,'XTickLabel','','YTickLabel','','ZTickLabel','');
  2 Comments
Ruger28
Ruger28 on 8 Oct 2020
No problem! Brackets also work, just FYI
set(gca,'XTickLabel',[],'YTickLabel',[],'ZTickLabel',[]);

Sign in to comment.

More Answers (0)

Categories

Find more on Formatting and Annotation in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by