Heatmap with log scale axis

Hi,
I have been trying to plot a heatmap with a log scale x - axis, such as the one shown in the attachment.
I have tried to change the scale of the axis by:
set(gca, 'XScale', 'log')
But the error "The name 'XScale' is not an accessible property for an instance of class 'matlab.graphics.chart.HeatmapChart'." shows up.
Is there another way to get around this error?

Respuestas (2)

David Hill
David Hill el 9 de En. de 2020

0 votos

Look at:
semilogx()

1 comentario

David Hill
David Hill el 9 de En. de 2020
Disregard, should have looked at your file.

Iniciar sesión para comentar.

Star Strider
Star Strider el 9 de En. de 2020

0 votos

That actually looks more like a surf plot.
Try something like this:
zdata = rand(10,50);
figure
surf(zdata)
view(0,90)
set(gca, 'XScale','log', 'Xdir','reverse')
axis('tight')
Experiment to get the result you want.

Categorías

Más información sobre Data Distribution Plots en Centro de ayuda y File Exchange.

Productos

Versión

R2019b

Preguntada:

el 9 de En. de 2020

Comentada:

el 9 de En. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by