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

카테고리

도움말 센터File Exchange에서 Blue에 대해 자세히 알아보기

제품

질문:

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