Linked Pan and Zoom

버전 1.21.0.0 (6.59 KB) 작성자: Geoffrey Akien
Pans and zooms multiple axes on the same figure, with full control of axes linking.
다운로드 수: 940
업데이트 날짜: 2016/8/24

라이선스 보기

Pan with left click mouse drag, draw a zoombox with right click drag, and view all data with double-click. This also retains any existing WindowButtonXFcn the figure has, as well as any axes UIContextMenus.
I wrote this for live data capture, as linkaxes sets XLimMode to "manual" - which means the axes wouldn't automatically resize for new data.
panzoom(figureHandle, axesHandles)
Adds the functionality to that figure, ONLY to the axes handles specified.
panzoom(figureHandle, axesHandles, xLink)
panzoom(figureHandle, axesHandles, xLink, yLink)
Assuming you have four axes handles: 1, 2, 3, 4. You could link all of the x axes together: xLink = [1, 2, 3, 4], or you could link them in pairs in a cell array: xLink = {[1, 2], [3, 4]}. The same applies for yLink. xLink or yLink can also be empty.

인용 양식

Geoffrey Akien (2024). Linked Pan and Zoom (https://www.mathworks.com/matlabcentral/fileexchange/26282-linked-pan-and-zoom), MATLAB Central File Exchange. 검색됨 .

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

Community Treasure Hunt

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

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

Bugfix for compatibility with later MATLAB versions (post-HG2)

1.2.0.0

Fixed getposition so it works properly with the new handle graphics system. Have not tested the other components yet.

1.1.0.0

Fixed the "oget" error, and added back in a dependency for the helper function "getposition" (yes I know, very sloppy).

1.0.0.0