How to remove colorbar and heatmap black borders?
Show older comments
I need to remove colorabar and heatmap blck borders. Any idea?
Accepted Answer
More Answers (2)
Yue
on 2 Mar 2022
1 vote
h.GridVisible = 'off';
This will work to remove black borders.
1 Comment
Benjamin Kraus
on 2 Mar 2022
Thank you for reminding me about that. I've updated my answer above to reflect that you can set the GridVisible property. You can also use the grid command:
grid off
Sophia Snipes
on 3 Aug 2022
For removing the black border of the colobar:
set(colorbar, 'Color', 'none')
Categories
Find more on Color and Styling 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!