How do I make heatmap axes order from bottom-top?
조회 수: 9 (최근 30일)
이전 댓글 표시
I am struggling with making heatmap order from bottom to top.
Snapshot is what I have currently, but I want to flip the plot order.
Thank you
댓글 수: 0
답변 (1개)
Daniel M
2019년 10월 17일
x = magic(10);
figure
imagesc(x) % notice the y-axis goes from 10-1 from bottom to top
set(gca,'YDir','normal') % now it is reversed!
댓글 수: 0
참고 항목
카테고리
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!