Reverse y axis order
Mostrar comentarios más antiguos
Hi. I have the following script (attached )b and the run that it opens can be found at this link.
https://drive.google.com/open?id=0B0wQbicZOF7xN1BXV1FKVVRCT2c
It works perfectly except I want to reverse the the y- axis. I have tried several things but no luck. The only way I found is to do it manually. Is there another way?
Respuesta aceptada
Más respuestas (1)
KSSV
el 28 de Mzo. de 2017
N = 10 ;
x = rand(N,1) ;
y = 1:N ;
figure(1)
plot(x,y) ;
figure(2)
plot(x,y) ;
set(gca,'Ydir','reverse')
5 comentarios
David du Preez
el 28 de Mzo. de 2017
Timothy Buchanan
el 7 de Ag. de 2019
It worked for me.
Helene Thygesen
el 10 de Nov. de 2020
it worked for me too
Ruslan Askarov
el 26 de Mayo de 2023
it worked for me too. Thanks a lot!
Jahanzeb Saqib
el 8 de Jun. de 2023
Its working for me as well even with barh plot... Many thanks!
Categorías
Más información sobre Annotations 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!