I have a GUI with one object: axes and a pushbutton. When pressing the pushbutton, I would like to display on the axes several images. I tried to use subplots but it doesn’t seem to cope: the images go all over the GUI window and not just where the axes are.
Here is the code for my pushbutton:
axes(handles.ManyImage);subplot(2,2,1);RGB1 = imread('Image1.TIF');imagesc(RGB1);axis offsubplot(2,2,2);RGB2 = imread('Image2.TIF');imagesc(RGB2);axis offsubplot(2,2,3);RGB3 = imread('Image3.TIF');imagesc(RGB3);axis off
I attached the illustrations of my problem.
Thank you for the help!
Best Answer