MATLAB子图边距

mat*_*eek 27 matlab plot subplot

我正在使用subplot命令绘制5 x 3图,但每个子图周围都有很大的边距.

如何控制它们周围的边距大小?

有人可以帮忙吗?

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

替代文字

Jon*_*nas 15

问题是Matlab分配position每个轴的属性,使每个图周围都有空间.您可以调整position属性,也可以从文件交换中获取子,并按照您喜欢的方式设置子图.

  • 这里的+1是MathWorks解决方案的链接,说明了相同的建议:http://www.mathworks.com/support/solutions/en/data/1-1XTXW0/index.html?product =ML &solution = 1-1XTXW0 (4认同)

Yai*_*man 12

看看轴的LooseInsetOuterPosition属性:http: //undocumentedmatlab.com/blog/axes-looseinset-property/