How do I make heatmap axes order from bottom-top?

6 Ansichten (letzte 30 Tage)
Soda
Soda am 17 Okt. 2019
Beantwortet: Daniel M am 17 Okt. 2019
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

Antworten (1)

Daniel M
Daniel M am 17 Okt. 2019
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!

Kategorien

Mehr zu Data Distribution Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by