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

Fills the figure with axes subplots with easily adjustable margins and gaps between the axes.

이 제출물을 팔로우합니다

편집자 메모: 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 (2026). tight_subplot(Nh, Nw, gap, marg_h, marg_w) (https://kr.mathworks.com/matlabcentral/fileexchange/27991-tight_subplot-nh-nw-gap-marg_h-marg_w), MATLAB Central File Exchange. 검색 날짜: .

일반 정보

MATLAB 릴리스 호환 정보

  • 모든 릴리스와 호환

플랫폼 호환성

  • Windows
  • macOS
  • Linux
버전 퍼블리시됨 릴리스 정보 Action
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