Heatmap with log scale axis

조회 수: 25 (최근 30일)
Donald Ong
Donald Ong 2020년 1월 9일
댓글: David Hill 2020년 1월 9일
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?

답변 (2개)

David Hill
David Hill 2020년 1월 9일
Look at:
semilogx()
  댓글 수: 1
David Hill
David Hill 2020년 1월 9일
Disregard, should have looked at your file.

댓글을 달려면 로그인하십시오.


Star Strider
Star Strider 2020년 1월 9일
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.

카테고리

Help CenterFile Exchange에서 Data Distribution Plots에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by