removing numbers on axis without removing the grid lines
Show older comments
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
Accepted Answer
More Answers (2)
Achilleas
on 23 Jul 2018
0 votes
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 Comment
Muhammad Adil
on 7 May 2020
Thanks It also worked for me.
C. Nwachoma
on 25 Sep 2018
0 votes
How do you reverse the process in case you remove the numbering on the wrong axis?
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!