Limit figure size

버전 1.1.0.0 (3.53 KB) 작성자: Jan
Set minimal or maximal size of a figure
다운로드 수: 835
업데이트 날짜: 2016/2/29

라이선스 보기

LimitSizeFig - Set minimum and maximum figure size
Some dialogs become ugly, if their size is getting too small. Setting a minimal size in the figure's ResizeFcn leads to strange effects, when the left side of the figure is dragged. This function calls Java to limit the figure size.
LimitSizeFig(FigH, Prop, Ext)
INPUT:
FigH: Handle of a Matlab figure.
Prop: String, command:
'min', 'max': Set minimum or maximum extent.
'get': Reply the limits.
'clear': Clear both limits.
Ext: Extent as [1 x 2] vector, minimal width and height in pixels.
EXAMPLES:
FigH = figure;
LimitSizeFig(FigH, 'min', [200, 200])
LimitSizeFig('max', [400, 400]) % Uses GCF
Limit = LimitSizeFig(FigH, 'get')

Tested: Matlab 7.7, 7.8, 7.13, 8.6, HG2, WinXP/32, Win7/64
Run the unit-test uTest_LimitSizeFig to check the validity on your Matlab version.

인용 양식

Jan (2024). Limit figure size (https://www.mathworks.com/matlabcentral/fileexchange/38527-limit-figure-size), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2015b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Call Web Services from MATLAB Using HTTP에 대해 자세히 알아보기

Community Treasure Hunt

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

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

Adjutsed to R2015b
Mentioned compatibility with HG2.

1.0.0.0