plotting in 2d with imagesc
Show older comments
Hi : I have a question about the plot command (imagesc). I am overlapping two fields together and when plotted both of them using (imagesc), I noted that they are flipped vertically. This caused me to have doubt about if the result of the overlap, which I also plotted using (imagesc), is also flipped or not. Please, help me with useful information. thanks
Accepted Answer
More Answers (1)
Image Analyst
on 8 Apr 2015
You can specify whether the lower values of Y are at the top, like for images and matrices, or at the bottom, like for traditional x,y plots:
set(gca, 'YDir', 'reverse'); % or 'normal'
Categories
Find more on Blue 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!



