Reverse y axis order
古いコメントを表示
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?
採用された回答
その他の回答 (1 件)
KSSV
2017 年 3 月 28 日
N = 10 ;
x = rand(N,1) ;
y = 1:N ;
figure(1)
plot(x,y) ;
figure(2)
plot(x,y) ;
set(gca,'Ydir','reverse')
5 件のコメント
David du Preez
2017 年 3 月 28 日
Timothy Buchanan
2019 年 8 月 7 日
It worked for me.
Helene Thygesen
2020 年 11 月 10 日
it worked for me too
Ruslan Askarov
2023 年 5 月 26 日
it worked for me too. Thanks a lot!
Jahanzeb Saqib
2023 年 6 月 8 日
Its working for me as well even with barh plot... Many thanks!
カテゴリ
ヘルプ センター および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!