tight_subplot(nh, nw, gap, marg_h, marg_w)
编者注: popular file
this file was selected as matlab centralsubplot tends to leave a lot of empty space around the axes. tight_subplot allows to adjust the spacing between the axes as well as the margins around the axes.
for example:
[ha, pos] = tight_subplot(3,2,[.01 .03],[.1 .01],[.01 .01])
for ii = 1:6; axes(ha(ii)); plot(randn(10,ii)); end
set(ha(1:4),'xticklabel',''); set(ha,'yticklabel','')
引用格式
pekka kumpulainen (2023). tight_subplot(nh, nw, gap, marg_h, marg_w) (https://www.mathworks.com/matlabcentral/fileexchange/27991-tight_subplot-nh-nw-gap-marg_h-marg_w), matlab central file exchange. 检索来源 .
matlab 版本兼容性
平台兼容性
windows macos linux类别
- > > > > > >
标签
致谢
启发作品: , , , , ,
community treasure hunt
find the treasures in matlab central and discover how the community can help you!
start hunting!探索实时编辑器
创建集代码、输出和格式化文本于一体的可执行脚本文档。
版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.1.0.0 | positions of the created axes objects are returned. allowing to reset the positions after some standard functions, which reposition existing axxes (eg. colorbar) |
|
|
1.0.0.0 |
|