How to turn off X axis while keeping the X axis grid lines?
15 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Athul C P
il 5 Nov 2021
Commentato: Athul C P
il 6 Nov 2021
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 Commenti
Risposta accettata
Sudharsana Iyengar
il 5 Nov 2021
Hi
Please try this and see if this is what you wanted.
grid on
set(gca,'Xticklabel',{})
Più risposte (1)
Vedere anche
Categorie
Scopri di più su Title in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
