Enlarge figure axes by a given factor

버전 1.1.0 (2.79 KB) 작성자: Jan Valdman
Given a figure with (eg. tight) axes, this simple code automatically recalculates and enlarges axes them by a prescribed factor.
다운로드 수: 19
업데이트 날짜: 2022/11/15

라이선스 보기

5 examples (the code works in both normal and logarithmic scales):
figure; x=1:100; y=sqrt(x); plot(x,y); axis tight; enlarge_axis(0.1,0.05);
figure; x=1:100; y=sqrt(x); semilogy(x,y); axis tight; enlarge_axis(0.1,0.05);
figure; x=1:100; y=sqrt(x); semilogx(x,y); axis tight; enlarge_axis(0.1,0.05);
figure; x=1:100; y=sqrt(x); loglog(x,y); axis tight; enlarge_axis(0.1,0.05);
figure; sphere; axis image; enlarge_axis;

인용 양식

Jan Valdman (2024). Enlarge figure axes by a given factor (https://www.mathworks.com/matlabcentral/fileexchange/79796-enlarge-figure-axes-by-a-given-factor), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2020a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
태그 태그 추가

Community Treasure Hunt

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

Start Hunting!

enlarge_axis

버전 게시됨 릴리스 정보
1.1.0

Now it works in 3D as well.

1.0.0