Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to control the margin size around subplots?

I'm plotting 5 x 3 plots using subplot command, but there are massive margins around each subplot.

How do I control the margin size around them?

figure; for c=1:15     subplot(5,3,c);      imagesc(reshape(image(:,c), 360,480));      colormap gray;      axis image; end 

alt text

like image 843
matcheek Avatar asked Dec 10 '10 16:12

matcheek


1 Answers

The problem is that Matlab assigns the position property of each axis such that there is space around each plot. You can either adjust the position property, or you can get subaxis from the File Exchange and set up the subplots the way you like.

like image 188
Jonas Avatar answered Sep 21 '22 23:09

Jonas