Heatmap with log scale axis

17 ビュー (過去 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 Center および File ExchangeData Distribution Plots についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by