MATLAB: Is it possible to use square subplots

axisimagesubplot

if I use axis image: the problem is the gaps are too big between subplots, I would like to adjust the figure size also automatically, if possible

Best Answer

You can use "axis square" though that does not do anything for the large amount of blank space between plots. You'll need set(gca, 'Position', [x,y,w,h]) for that.