How can one remove y-axis ticks on imagesc but keep labels?
Show older comments
While heatmapping my data with imagesc, I want to display on my x-axis ticks and labels, but on y-axis I only want to display labels, no ticks. I know one can remove all ticks by setting the length to zero with set(gca,'TickLength',[0 0]). But how to achieve this on only one axis?
3 Comments
madhan ravi
on 1 Feb 2019
yticks([])
Birgit Strikholm
on 1 Feb 2019
madhan ravi
on 1 Feb 2019
oh ok normally it worked but didn‘t test with imagesc()
Accepted Answer
More Answers (0)
Categories
Find more on Data Distribution 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!