setAxes

버전 1.0.0.0 (4.34 KB) 작성자: Andrew Yuan
Removes white spaces between subplots
다운로드 수: 69
업데이트 날짜: 2017/9/22

라이선스 보기

setAxes automatically sets the position and size of the axes (subplots) in the given figure so that white space. To use its most basic functionality, just type "setAxes" in the command line.
Optional Inputs:

pad: A vector of size 1,2,3,4. The padding method follows that of HTML

If size 1, then each subplot is padded with white space by the
given amount (in normalized units)

If size 2, then for each subplot, the top and bottom are padded by
pad[0], and the right and left are padded by pad[1]

If size 3, then for each subplot, the top is padded by pad[0], the
right and left are padded by pad[1], and the bottom is padded by
pad[2]

If size 4, then for each subplot, the top is padded by pad[0], the
right by pad[1], the bottom by pad[2], the left by pad[3]

fh: figure handle. By default, == gcf

Examples
setAxes

set axes positions for current figure (gcf)

setAxes(0.1)

each subplot in current figure has boundary (white space) of 0.1 (in normalized units)

setAxes([0.05,0,0,0])

each subplot in current figure has top boundary (white space) of 0.05 and 0 in the right, bottom, and left
boundary

setAxes(__, fh)

set axes for subplots in the figure with figure handle

Author: Andrew Yuan
Jianwei (John) Miao Coherent Imaging Group
University of California, Los Angeles
Copyright (c) 2017, All Rights Reserved

인용 양식

Andrew Yuan (2024). setAxes (https://www.mathworks.com/matlabcentral/fileexchange/64503-setaxes), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2016a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Subplots에 대해 자세히 알아보기
도움

줌: IMG

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0

Just changed the description
changed title