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

8 visualizaciones (últimos 30 días)
Soda
Soda el 17 de Oct. de 2019
Respondida: Daniel M el 17 de Oct. de 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

Respuestas (1)

Daniel M
Daniel M el 17 de Oct. de 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!

Categorías

Más información sobre Data Distribution Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by