How do I make heatmap axes order from bottom-top?
7 次查看(过去 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!