Axis: no labels but grid on

15 ビュー (過去 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 Center および File ExchangeAxis Labels についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by