Log Color Scale command doesn't work

17 views (last 30 days)
Pouyan Pourmovahed
Pouyan Pourmovahed on 27 May 2021
Edited: Adam Danz on 1 Jun 2021
I'm trying to creat a colormap with logscale. The set(gca,'ColorScale','log') command doesn't work for me. I get this error: There is no ColorScale property on the Axes class. I think this command doesn't work in newer versions. Are there any alternatives? Thank you

Answers (1)

Adam Danz
Adam Danz on 28 May 2021
Edited: Adam Danz on 31 May 2021
Axes do have a ColorScale property (see documentation).
What type of axes and what Matlab release are you using?
% Matlab R2021a
ax = axes();
ax.ColorScale = 'log';
colorbar

Products

Community Treasure Hunt

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

Start Hunting!