MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   MATLAB子图边距 (https://www.labfans.com/bbs/showthread.php?t=24213)

poster 2019-12-10 20:48

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

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

figure; for c=1:15 subplot(5,3,c); imagesc(reshape(image(:,c), 360,480)); colormap gray; axis image; end [IMG]https://i.stack.imgur.com/mUmxR.png[/IMG]



[B]回答:[/B]

问题是Matlab分配了每个轴的position属性,以便每个图周围都有空间。您可以调整position属性,也可以从File Exchange获取子[URL="http://www.mathworks.com/matlabcentral/fileexchange/3696-subaxis-subplot"]轴[/URL] ,并按自己的方式设置子图。



[url=https://stackoverflow.com/questions/4410873]更多&回答...[/url]


所有时间均为北京时间。现在的时间是 01:05

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.