Plotting Image arrays with Imagesc flips them vertically.
Show older comments
I have an image contained in an array with (1,1) being in the top left corner. When using imagesc the image flips vertically and the y axis plots from 0-num starting from the bottom. Is there a way I can prevent the image from flipping and have the y-axis count from the top left down?
Accepted Answer
More Answers (1)
Walter Roberson
on 28 Jul 2016
1 vote
"axis ydirection controls the placement of the coordinate system origin and the direction of increasing y values. Set ydirection to ij to place the origin at the upper left corner of the axes. The y values increase from top to bottom. Set ydirection to xy to place the origin at the lower left corner. The y values increase from bottom to top. This is the default value."
Categories
Find more on Image Arithmetic in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!