X-axis ticks on heatmap
조회 수: 2 (최근 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!