Syntax is the same as linkaxes, except without passing in the handles to the axes to link. It replaces:
figure;
ax(1) = subplot(2,1,1);
plot(rand(10,1));
ax(2) = subplot(2,1,2);
plot(1:10);
linkaxes(ax,'x')
clear ax
with:
figure;
subplot(2,1,1);
plot(rand(10,1));
subplot(2,1,2);
plot(1:10);
linkaxesInFigure('x')
인용 양식
Dan K (2024). Link All Axes in Figure (https://www.mathworks.com/matlabcentral/fileexchange/34476-link-all-axes-in-figure), MATLAB Central File Exchange. 검색됨 .
MATLAB 릴리스 호환 정보
개발 환경:
R2011b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux카테고리
- MATLAB > Graphics > Formatting and Annotation > Axes Appearance > Combine Multiple Plots > Subplots >
Help Center 및 MATLAB Answers에서 Subplots에 대해 자세히 알아보기
태그
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!버전 | 게시됨 | 릴리스 정보 | |
---|---|---|---|
1.0.0.0 |