tight_subplot(Nh, Nw, gap, marg_h, marg_w)

版本 1.1.0.0 (2.0 KB) 作者: Pekka Kumpulainen
Fills the figure with axes subplots with easily adjustable margins and gaps between the axes.

45.7K 次下载

更新时间 2016/3/3

查看许可证

编者注: Popular File 2019

This file was selected as MATLAB Central Pick of the Week

Subplot 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 (2022). 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 版本兼容性
创建方式 R2010a
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!