How to turn off X axis while keeping the X axis grid lines?
34 ビュー (過去 30 日間)
古いコメントを表示
The x axis is turning off while using 'XTick', [ ] and gridlines are also removing(vertical lines). But I need to keep the grid lines and remove xaxis from the figure.
set(gca,'XTick',[],'fontweight' , 'bold','fontsize',12); xlim([0 122]); grid on ;
0 件のコメント
採用された回答
Sudharsana Iyengar
2021 年 11 月 5 日
Hi
Please try this and see if this is what you wanted.
grid on
set(gca,'Xticklabel',{})
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Axis Labels についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!