Log Color Scale command doesn't work

조회 수: 17 (최근 30일)
Pouyan Pourmovahed
Pouyan Pourmovahed 2021년 5월 27일
편집: Adam Danz 2021년 6월 1일
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일
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

카테고리

Help CenterFile Exchange에서 Orange에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by