How can one remove axis ticks on imagesc but keep labels?
53 views (last 30 days)
Show older comments
I am trying to remove the physical tick marks from imagesc on both the x and y axes, but have labels for both axes I want to keep. Is there a way to remove the ticks, or control the size of them so they are virtually invisible?
0 Comments
Answers (2)
Mike Garrity
on 3 Mar 2016
Have you tried setting the length of the ticks to 0?
set(gca,'TickLength',[0 0])
2 Comments
Ruben Haverkort
on 28 May 2021
Edited: Ruben Haverkort
on 28 May 2021
Hi Mr M.
This answer is probably a bit late for you, but maybe somebody else googling this topic might benefit.
To remove the 'axis lines', use
grid off
See Also
Categories
Find more on Axis Labels in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!