Axis: no labels but grid on

8 Ansichten (letzte 30 Tage)
Maria
Maria am 8 Okt. 2020
Kommentiert: Ruger28 am 8 Okt. 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?

Akzeptierte Antwort

Ruger28
Ruger28 am 8 Okt. 2020
Bearbeitet: Ruger28 am 8 Okt. 2020
set(gca,'XTickLabel','','YTickLabel','','ZTickLabel','');
  2 Kommentare
Maria
Maria am 8 Okt. 2020
oh, that was easy! Thanks :)
Ruger28
Ruger28 am 8 Okt. 2020
No problem! Brackets also work, just FYI
set(gca,'XTickLabel',[],'YTickLabel',[],'ZTickLabel',[]);

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Graphics Object Properties finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by