How do I reverse the y-axis in image?
古いコメントを表示
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.
採用された回答
その他の回答 (4 件)
Chad Greene
2014 年 11 月 25 日
And another solution:
axis ij
2 件のコメント
Iana Ladygina
2020 年 3 月 4 日
thank you!
Wybekrik
2020 年 4 月 24 日
Just what i was looking for!
Wagih Abu Rowin
2018 年 10 月 5 日
12 投票
set(gca,'Ydir','reverse')
1 件のコメント
Shushobhit Chaudhary
2019 年 5 月 28 日
This is the best answer. Thanks a lot. It helped me a lot.
Shane
2014 年 11 月 25 日
2 投票
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
2022 年 6 月 7 日
0 投票
How do I reverse the "Interference from Satellite Constellation Communication Link" code, where the direction starts from the opposite way.
カテゴリ
ヘルプ センター および File Exchange で Graphics Object Properties についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!