How do I use a log scale for my colorbar in imagesc?

imagesc(lonedges, latedges, bincounts); colorbar(); title('Bin Test'); set(gca, 'YDir', 'normal')
Is there a way for me to make this colorbar() log scaled instead of linearly scaled? I would prefer if it was done in imagesc instead of using a separate function, but either way works.

Asked:

on 18 Nov 2023

Edited:

DGM
on 18 Nov 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!