X-axis ticks on heatmap
1 回表示 (過去 30 日間)
古いコメントを表示
Hi,
I am learning to draw a heatmap in matlab. I can add x-axis labels or numbers. But I don't know how to add ticks on x-axis corresponding to the numbers. Can anyone help me with this? Thanks!
the set(gca,'XTick') works when you use plot but doesn't work for a heatmap object. :(
0 件のコメント
採用された回答
the cyclist
2011 年 7 月 31 日
plot(1:10)
set(gca,'XTick',2:2:10)
1 件のコメント
yakub sharif
2020 年 2 月 11 日
doesn't work with mine
I am using the code
heatmapHandle = heatmap(surface_grid2, 'ColorMap', jet(100))
heatmapHandle.YDisplayData = flipud(heatmapHandle.YDisplayData);
and want to label the x axis with floating numbers like 1:.5:10
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Data Distribution Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!