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

回答 (1 件)

Adam Danz
Adam Danz 2021 年 5 月 28 日
編集済み: Adam Danz 2021 年 5 月 31 日

0 投票

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

カテゴリ

製品

質問済み:

2021 年 5 月 27 日

編集済み:

2021 年 6 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by