How do I reverse the y-axis in image?
Mostrar comentarios más antiguos
The image function reverses the y-axis so I wanted to reverse it to correct it. I know it has something to do with gca but cannot figure out the right code. Please help me.
Respuesta aceptada
Más respuestas (4)
Chad Greene
el 25 de Nov. de 2014
And another solution:
axis ij
2 comentarios
Iana Ladygina
el 4 de Mzo. de 2020
thank you!
Wybekrik
el 24 de Abr. de 2020
Just what i was looking for!
Wagih Abu Rowin
el 5 de Oct. de 2018
12 votos
set(gca,'Ydir','reverse')
1 comentario
Shushobhit Chaudhary
el 28 de Mayo de 2019
This is the best answer. Thanks a lot. It helped me a lot.
Shane
el 25 de Nov. de 2014
2 votos
Alternatively, you can flip the array. Either fliplr or flipud Flip Left-Right, or Up-Down, depending on how your data is.
plot(X, fliplr(Y))
Jamel
el 7 de Jun. de 2022
0 votos
How do I reverse the "Interference from Satellite Constellation Communication Link" code, where the direction starts from the opposite way.
Categorías
Más información sobre Graphics Object Properties en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!