fix_x_limits

버전 1.0.0.0 (1.32 KB) 작성자: Pekka Kumpulainen
Forces the same XLim to all axis

다운로드 수: 512

업데이트 날짜: 2009/6/9

라이선스 보기

fix_x_limits fixes all axis in current figure to the maximum span found
fix_x_limits(h) fixes XLim property of all axis objects in h or all axes parented under h if figure handles to maximum span found within all axes
fix_x_limits(h,limits) fixes all to given limits: [minx maxx]

Example:
h1 = subplot(2,1,1);hist(rand(100,1));
h2 = subplot(2,1,2);hist(randn(100,1));
fix_x_limits % set the maximum limits to all axes in current figure
fix_x_limits([h1 h2],[-3 3]) % Give the limits to the axis objects
fix_x_limits(gcf,[-5 4]) % Give the limits to the figure object

인용 양식

Pekka Kumpulainen (2023). fix_x_limits (https://www.mathworks.com/matlabcentral/fileexchange/24378-fix_x_limits), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2007a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux

Community Treasure Hunt

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

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