フィルターのクリア

removing numbers on axis without removing the grid lines

88 ビュー (過去 30 日間)
Suleyman Deveci
Suleyman Deveci 2013 年 3 月 11 日
コメント済み: Igor Gitelman 2022 年 11 月 30 日
Hi all
When I use following command to remove numbers on the -y axis of a graph, it also removes the grid lines. How can I keep the grid lines?
set(gca,'YTick',[])
Regards
Suleyman

採用された回答

Walter Roberson
Walter Roberson 2013 年 3 月 11 日
Leave the YTick alone, but set YTickLabel to []
  2 件のコメント
Suleyman Deveci
Suleyman Deveci 2013 年 3 月 11 日
Done. Thanks for your reply.
Igor Gitelman
Igor Gitelman 2022 年 11 月 30 日
thanks. Right to the corect options!!!

サインインしてコメントする。

その他の回答 (2 件)

Achilleas
Achilleas 2018 年 7 月 23 日
The aforementioned solution didn't work for me, meaning that I wasn't able to activate the grid minor choice.
So, I used this 'xticklabel',num2str('').
  1 件のコメント
Muhammad Adil
Muhammad Adil 2020 年 5 月 7 日
Thanks It also worked for me.

サインインしてコメントする。


C. Nwachoma
C. Nwachoma 2018 年 9 月 25 日
How do you reverse the process in case you remove the numbering on the wrong axis?

カテゴリ

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