Log Color Scale command doesn't work

7 visualizaciones (últimos 30 días)
Pouyan Pourmovahed
Pouyan Pourmovahed el 27 de Mayo de 2021
Editada: Adam Danz el 1 de Jun. de 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

Respuestas (1)

Adam Danz
Adam Danz el 28 de Mayo de 2021
Editada: Adam Danz el 31 de Mayo de 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

Categorías

Más información sobre Orange en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by